/*
 * WABO COAP. Every colour, font and corner comes from a token (--cb-<role>, theme contract v1).
 * The values below are defaults only: :where() gives them no weight, so the site's own values in
 * cantata-edit.json → "tokens" (which the plugin prints on :root) always win.
 */

:where(:root) {
	--cb-bg: #ffffff;
	--cb-surface: #ffffff;
	--cb-tint: #ECEAE8;
	--cb-dark: #09284C;
	--cb-accent: #A30C10;
	--cb-accent-2: #EE1D25;
	--cb-accent-bg: #A30C10;
	--cb-heading: #09284C;
	--cb-ink: #111111;
	--cb-muted: #514F4E;
	--cb-line: #D5D2CF;
	--cb-on-dark: #ffffff;
	--cb-on-dark-muted: #DCE4EE;
	--cb-accent-on-dark: #FF9EA1;
	--cb-on-accent: #ffffff;
	--cb-display: "Inter", system-ui, sans-serif;
	--cb-body: "Inter", system-ui, sans-serif;
	--cb-radius: 10px;

	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
}

/* Shades made from the tokens, so a token change carries through. */
:root {
	--coap-soft: color-mix(in srgb, var(--cb-tint) 35%, var(--cb-bg));      /* the kit's #F8F8F8 */
	--coap-blue: color-mix(in srgb, var(--cb-dark) 78%, var(--cb-on-dark)); /* the kit's dusky blue #2F567F */
	--coap-round: calc(var(--cb-radius) * 2);                               /* cards and boxes */
	--wrapw: 1180px;
}

/* ---- base ---------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cb-bg);
	color: var(--cb-ink);
	font: 400 1rem/1.6 var(--cb-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cb-accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cb-accent-2); outline-offset: 3px; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--cb-heading);
	font-family: var(--cb-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.2rem); line-height: 1.05; }
/* Section headings are the COAP red on white and grey; inside a tone or a navy box they follow the tone. */
main > section { --coap-h2: var(--cb-accent); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 600; color: var(--coap-h2, var(--cb-heading)); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }
:is(p, ul, ol, blockquote, figure):last-child { margin-bottom: 0; }

/* Lists in page content: red dots (the site's icon-list), or check marks with the "List marks" style. */
main :is(ul:not([class]), ul.c-checks) { padding: 0; list-style: none; }
main :is(ul:not([class]), ul.c-checks) > li { position: relative; padding-left: 1.4em; }
main :is(ul:not([class]), ul.c-checks) > li + li { margin-top: .55em; }
main ul:not([class]) > li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .5em; height: .5em; border-radius: 50%; background: var(--cb-accent-2); }
main ul.c-checks > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1em; height: 1em; border-radius: 50%; background: var(--cb-accent-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 16.2-5-5 1.7-1.7 3.3 3.3 7-7 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 16.2-5-5 1.7-1.7 3.3 3.3 7-7 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
main ul:not([class]) ul:not([class]) { margin: .4em 0 0; }
main ul:not([class]) ul:not([class]) > li::before { background: transparent; border: 1.5px solid var(--cb-accent-2); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: var(--cb-surface); border-radius: var(--cb-radius); }

/* ---- layout -------------------------------------------------------------------------------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrapw)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 760px); }
main > section { padding-block: var(--section); }
main > section.pad-s { padding-block: calc(var(--section) * .55); }
main > section.pad-l { padding-block: calc(var(--section) * 1.4); }
main > section.pad-t0 { padding-top: 0; }
main > section.pad-b0 { padding-bottom: 0; }
main > section.center { text-align: center; }

.prose > * + :is(h2, h3) { margin-top: 1.6em; }
.prose img { border-radius: var(--cb-radius); }
.lead { font-size: 1.2rem; line-height: 1.55; }

/* A section heading row, wrapped around the plugin's blocks (cantata-edit.json "head"). */
.head-row { max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
main > section.center .head-row { margin-inline: auto; }
.head-row p { color: var(--cb-muted); font-size: 1.1rem; }

/* The navy box several components offer as a layout ("box"): the section stays the page's colour and its content
   sits in a rounded navy panel, as on the old site. Inside it the tokens are the dark tone's. */
main > section.layout-box > .wrap {
	--cb-heading: var(--cb-on-dark); --cb-ink: var(--cb-on-dark-muted); --cb-muted: var(--cb-on-dark-muted);
	--cb-accent: var(--cb-accent-on-dark); --cb-line: color-mix(in srgb, var(--cb-on-dark) 20%, transparent);
	--cb-surface: var(--coap-blue); --coap-h2: var(--cb-on-dark);
	padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px);
	background: var(--cb-dark); color: var(--cb-on-dark-muted); border-radius: var(--coap-round);
}
main > section.layout-box > .wrap :is(h1, h2, h3, h4) { color: var(--cb-heading); }
main > section.layout-box > .wrap a:not([class]) { color: var(--cb-on-dark); }

/* ---- buttons: cantata-edit.json "button" / "button2" ------------------------------------------ */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em;
	border: 1px solid transparent;
	border-radius: var(--cb-radius);
	font: 700 1rem/1.2 var(--cb-body);
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn.btn-main { background: var(--cb-accent-bg); color: #fff; border-color: color-mix(in srgb, #fff 70%, transparent); }
.btn.btn-main:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--cb-accent-bg) 88%, black); color: #fff; }
.btn-second { border-color: currentColor; color: var(--cb-heading); }
.btn-second:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.c-actions, p:has(> .btn + .btn) { display: flex; flex-wrap: wrap; gap: 12px; }
/* Keep the red button treatment in every section tone, including the editor's accent tone. */
main :is(.cb-tone-dark, .cb-tone-accent, .layout-cover, .layout-box, .cb-hero-cover, .cb-on-dark) :is(a, button, input).btn.btn-main { background: var(--cb-accent-bg); color: #fff; border-color: color-mix(in srgb, #fff 70%, transparent); }
main :is(.cb-tone-dark, .cb-tone-accent, .layout-cover, .layout-box, .cb-hero-cover, .cb-on-dark) :is(a, button, input).btn.btn-main:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--cb-accent-bg) 88%, black); color: #fff; }

/* Original Elementor red CTAs use saved widget styles instead of .btn-main. */
body:not(.home) .elementor .elementor-element.elementor-element-6fcf92b .elementor-button:is(:hover, :focus-visible),
body .elementor .elementor-element:is(.elementor-element-26c3f63, .elementor-element-6578324, .elementor-element-7c51d39, .elementor-element-40d81a1, .elementor-element-6860d1c) .elementor-button:is(:hover, :focus-visible) {
	background-color: color-mix(in srgb, var(--cb-accent-bg) 88%, black);
	color: #fff;
}

/* ---- header -------------------------------------------------------------------------------- */

.util { background: var(--cb-accent-bg); color: var(--cb-on-accent); }
.util .wrap { display: flex; justify-content: flex-end; min-height: 38px; align-items: center; }
.util a { display: inline-flex; align-items: center; gap: 8px; color: var(--cb-on-accent); text-decoration: none; font-size: .95rem; }
.util a:hover { text-decoration: underline; }
.util svg { width: 15px; height: 15px; }
.notice { background: var(--coap-blue); color: var(--cb-on-dark); text-align: center; font-size: .95rem; }
.notice .wrap { padding-block: 10px; }
.notice p { margin: 0; }

.site-head { position: sticky; top: 0; z-index: 50; background: var(--coap-soft); border-bottom: 1px solid var(--cb-line); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; } }
.site-head .bar { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.brand { display: block; margin: 0; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > :is(a, button) {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; background: none; cursor: pointer;
	color: var(--cb-ink); font: 400 1rem/1.25 var(--cb-body); text-decoration: none; }
.site-nav .menu > li > :is(a, button):hover, .site-nav .menu a[aria-current] { color: var(--cb-accent); }
.sub-toggle::after { content: ""; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5px solid currentColor; }
.site-nav .sub { position: absolute; top: 100%; left: 0; z-index: 5; display: none; min-width: 250px; margin: 0; padding: 10px 0; list-style: none;
	background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); box-shadow: 0 14px 30px color-mix(in srgb, var(--cb-dark) 16%, transparent); }
.site-nav .sub a { display: block; padding: 9px 20px; color: var(--cb-ink); text-decoration: none; }
.site-nav .sub a:hover { color: var(--cb-accent); background: var(--coap-soft); }
@media (min-width: 1081px) {
	.site-nav .has-sub:is(:hover, :focus-within, .open) > .sub { display: block; }
}
.burger { display: none; align-items: center; gap: 8px; margin-left: auto; padding: 9px 12px; border: 0; border-radius: var(--cb-radius); background: var(--cb-dark); color: var(--cb-on-dark); font: 600 .95rem var(--cb-body); cursor: pointer; }
.burger svg { width: 20px; }

@media (max-width: 1080px) {
	.site-head .bar { min-height: 84px; }
	.brand img { width: 120px; }
	.burger { display: inline-flex; }
	.site-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - 120px); overflow: auto; padding: 8px var(--gutter) 24px; background: var(--coap-soft); border-bottom: 1px solid var(--cb-line); }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li > :is(a, button) { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--cb-line); }
	.site-nav .sub { position: static; min-width: 0; padding: 4px 0 8px 14px; border: 0; box-shadow: none; background: none; }
	.site-nav .has-sub.open > .sub { display: block; }
	.site-nav .sub a { padding: 10px 0; }
	.site-nav .btn { justify-content: center; }
}

/* ---- ordinary pages (not built with the editor: shop, account and course pages) ------------------ */

.page-head { background: var(--cb-tint); }
main > .page-head { padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { margin-bottom: 0; }
.page-head .intro { max-width: 60ch; margin-top: 16px; font-size: 1.15rem; color: var(--cb-muted); }
.crumb { margin-bottom: 12px; font-size: .9rem; color: var(--cb-muted); }
.crumb a { color: inherit; }
.wp-page .prose :is(input, select, textarea) { max-width: 100%; }

/* ---- footer -------------------------------------------------------------------------------- */

.site-foot { background: color-mix(in srgb, var(--cb-muted) 88%, var(--cb-bg)); color: var(--cb-on-dark); border-top: 3px solid var(--cb-accent-2); }
.site-foot > .wrap { padding-block: 44px 0; }
.site-foot a { color: var(--cb-on-dark); }
.site-foot h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; color: var(--cb-on-dark); }
.site-foot h2 a { text-decoration: none; }
.site-foot h2 a:hover { text-decoration: underline; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.foot-contact li { display: flex; align-items: center; gap: 10px; }
.foot-contact li + li { margin-top: 6px; }
.foot-contact svg { width: 15px; height: 15px; flex: none; }
.foot-org > p { margin-top: 12px; }
.foot-marks { display: flex; align-items: center; gap: 20px; }
.foot-social svg { width: 26px; height: 26px; }
.foot-icc img { width: 110px; border-radius: 3px; }
.site-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-block: 14px; border-top: 1px solid color-mix(in srgb, var(--cb-on-dark) 22%, transparent); font-size: .9rem; }
.site-foot .legal p { margin: 0; }
.site-foot .legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---- components: one block each, scoped to its class. Layouts change CSS, never markup. ------------- */

/* shared: a label, a heading block, a quiet onward link */
.c-eyebrow { margin: 0 0 10px; font: 700 1.25rem/1.25 var(--cb-display); color: var(--cb-accent); }
.c-head { max-width: 760px; margin-bottom: 40px; }
.c-head > * + * { margin-top: 14px; }
.c-head h2 { margin-bottom: 0; }
.c-head > p { font-size: 1.05rem; }
.c-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; max-width: none; align-items: start; }
.c-head-split > * + * { margin-top: 0; }
.c-more { margin: 0; }
.c-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.c-more a::after { content: "\2192"; }
.c-note { margin-top: 28px; font-size: .95rem; }
/* italic words in a heading are the highlighted phrase: upright, with the red hand-drawn underline */
main :is(h1, h2, .c-features .c-head > p) em { font-style: normal; background: linear-gradient(transparent 88%, var(--cb-accent-2) 88%, var(--cb-accent-2) 96%, transparent 96%); padding-inline: 2px; }
main :is(.cb-tone-dark, .layout-box, .c-callout) :is(h1, h2, .c-head > p) em { color: var(--cb-on-dark); }

/* ---------- Page title ---------- */
main > section.c-pagetop { padding-block: clamp(44px, 6vw, 80px); }
.c-pagetop:not([class*="cb-tone-"]) { background: var(--cb-tint); }
.c-pagetop :is(h1, h2) { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); line-height: 1.05; color: var(--cb-heading); }
.c-crumbs { display: flex; flex-wrap: wrap; margin-bottom: 18px; font-size: .9rem; color: var(--cb-muted); }
.c-crumbs > * + *::before { content: "/"; margin: 0 10px; color: var(--cb-line); }
.c-crumbs a { color: inherit; text-decoration: none; }
.c-crumbs a:hover { color: var(--cb-accent); }
.c-crumbs [aria-current] { color: var(--cb-heading); }
.c-lead { max-width: 64ch; margin-top: 16px; font-size: 1.15rem; line-height: 1.55; }
.c-pagetop.layout-center .wrap { text-align: center; }
.c-pagetop.layout-center .c-crumbs { justify-content: center; }
.c-pagetop.layout-center .c-lead { margin-inline: auto; }
.c-pagetop-photo { display: none; margin: 0; }
/* over a faded photo: the old site's title bands (a washed-out picture, the title centred in navy) */
main > section.c-pagetop.layout-photo { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); }
.c-pagetop.layout-photo .wrap { text-align: center; }
.c-pagetop.layout-photo .c-crumbs { justify-content: center; }
.c-pagetop.layout-photo .c-lead { margin-inline: auto; }
.c-pagetop.layout-photo .c-pagetop-photo { display: block; position: absolute; inset: 0; z-index: -1; }
.c-pagetop.layout-photo .c-pagetop-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.c-pagetop.layout-photo .c-pagetop-photo::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--cb-sec-bg, var(--cb-bg)) 72%, transparent); }

/* ---------- Opening with photo ---------- */
main > section.c-hero { padding: 0; }
.c-hero:not([class*="cb-tone-"]) { background: var(--cb-tint); }
.c-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: none; margin: 0; min-height: 480px; }
.c-hero-body { align-self: center; padding: 64px clamp(24px, 4vw, 64px) 64px max(var(--gutter), calc((100vw - var(--wrapw)) / 2)); }
.c-hero :is(h1, h2) { margin: 0; font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.2rem); line-height: 1.05; color: var(--cb-heading); }
.c-hero-sub { margin-top: 22px; max-width: 58ch; }
.c-hero-body > .c-actions { margin-top: 28px; }
.c-hero-photo { position: relative; margin: 0; }
.c-hero-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.c-hero.layout-framed .wrap { width: min(100% - 2 * var(--gutter), var(--wrapw)); margin-inline: auto; gap: clamp(32px, 5vw, 72px); min-height: 0; padding-block: var(--section); align-items: center; }
.c-hero.layout-framed .c-hero-body { padding: 0; }
.c-hero.layout-framed .c-hero-photo img { height: auto; min-height: 0; aspect-ratio: 5 / 4; border-radius: var(--coap-round); }
/* words over the photo: always dark */
.c-hero.layout-cover { position: relative; isolation: isolate; overflow: hidden; background: var(--cb-dark); }
.c-hero.layout-cover .wrap { grid-template-columns: minmax(0, 1fr); min-height: min(76vh, 640px); }
.c-hero.layout-cover .c-hero-body { max-width: calc(var(--wrapw) * .6 + (100vw - var(--wrapw)) / 2); padding-block: 96px; }
.c-hero.layout-cover .c-hero-photo { position: absolute; inset: 0; z-index: -1; }
.c-hero.layout-cover .c-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--cb-dark) 92%, transparent) 0%, color-mix(in srgb, var(--cb-dark) 55%, transparent) 60%, color-mix(in srgb, var(--cb-dark) 20%, transparent) 100%); }
.c-hero.layout-cover .c-hero-photo img { height: 100%; }

/* ---------- Photo and words ---------- */
.c-split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.c-split-photo { margin: 0; }
.c-split-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--coap-round); }
.c-split-body > h2 { margin-bottom: 18px; }
.c-split-body > * + :is(ul, ol, .c-actions) { margin-top: 18px; }
.c-split-body > .c-actions { margin-top: 28px; }
.c-split.layout-right .c-split-photo { order: 2; }

/* ---------- Words ---------- */
.c-text .wrap { width: min(100% - 2 * var(--gutter), 860px); }
.c-text-body > * + :is(h2, h3, h4) { margin-top: 1.4em; }
.c-text-body > * + :is(p, ul, ol) { margin-top: .9em; }
.c-text-body h3 { color: var(--cb-heading); }
.c-text.layout-wide .wrap { width: min(100% - 2 * var(--gutter), var(--wrapw)); }
.c-text.layout-columns .wrap { width: min(100% - 2 * var(--gutter), var(--wrapw)); }
.c-text.layout-columns .c-text-body { columns: 2 320px; column-gap: 56px; }
.c-text.layout-columns .c-text-body > :is(h2, h3) { break-after: avoid; }
.c-text.layout-columns .c-text-body > h2:first-child { column-span: all; }

/* ---------- Points with icons ---------- */
.c-features:not([class*="cb-tone-"]):not(.layout-box) { background: var(--coap-soft); }
.c-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 32px; }
.c-feature-icon { width: 62px; height: 62px; margin-bottom: 18px; object-fit: contain; }
.c-feature h3 { margin-bottom: 10px; font-size: 1.25rem; }
.c-feature p { margin: 0; }
.c-features-photo { display: none; margin: 0; }
.c-features > .wrap > .c-actions { margin-top: 40px; justify-content: center; }
.c-features.layout-boxed .c-feature { padding: 30px 26px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--coap-round); }
.c-features.layout-box .c-head { max-width: none; text-align: center; }
.c-features.layout-box .c-head > p { font: 600 clamp(1.3rem, 1rem + 1.2vw, 1.9rem)/1.3 var(--cb-display); color: var(--cb-on-dark); }
.c-features.layout-box .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.c-features.layout-box .wrap > .c-head, .c-features.layout-box .wrap > .c-actions { grid-column: 1 / -1; margin-bottom: 20px; }
.c-features.layout-box .wrap > .c-actions { margin: 20px 0 0; }
.c-features.layout-box .c-features-grid { display: contents; }
.c-features.layout-box .c-feature { padding: 28px 24px; background: var(--coap-blue); border-radius: var(--coap-round); }
.c-features.layout-box .c-feature:nth-child(1) { grid-column: 1; grid-row: 2; }
.c-features.layout-box .c-feature:nth-child(2) { grid-column: 1; grid-row: 3; }
.c-features.layout-box .c-feature:nth-child(3) { grid-column: 3; grid-row: 2; }
.c-features.layout-box .c-feature:nth-child(4) { grid-column: 3; grid-row: 3; }
.c-features.layout-box .c-feature:nth-child(n+5) { grid-column: auto; grid-row: auto; }
.c-features.layout-box .c-features-photo { display: block; grid-column: 2; grid-row: 2 / span 2; }
.c-features.layout-box .c-features-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--coap-round); }
.c-features.layout-box .c-feature-icon { filter: brightness(0) invert(1); }

/* ---------- Program years ---------- */
.c-years:not([class*="cb-tone-"]) { background: var(--cb-tint); }
.c-years-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.c-year { position: relative; display: flex; flex-direction: column; padding: 32px 32px 30px; background: var(--cb-surface); border-radius: var(--coap-round); transition: box-shadow .15s, transform .15s; }
.c-year:hover { box-shadow: 0 18px 40px color-mix(in srgb, var(--cb-dark) 14%, transparent); transform: translateY(-2px); }
.c-year-icon { width: 58px; height: 58px; margin-bottom: 18px; object-fit: contain; }
.c-year-num { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--cb-accent); }
.c-year h3 { margin: 4px 0 0; font-size: 1.6rem; }
.c-year-focus { margin: 6px 0 12px; font: 700 1.3rem/1.25 var(--cb-display); color: var(--coap-blue); }
.c-year-more { position: absolute; top: 22px; right: 22px; margin: 0; }
.c-year-more a { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: var(--cb-radius); background: var(--cb-accent-bg); color: transparent; font-size: 0; }
.c-year-more a::before { content: ""; width: 18px; height: 18px; background: var(--cb-on-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M0 2.6C0 1.7.6 1 1.4 1L14.9 0c.8 0 1.5.6 1.6 1.4l1 13.5c0 .8-.6 1.5-1.4 1.6-.8 0-1.5-.6-1.6-1.4l-.7-9.9L3.1 17.5.8 15.5 11.5 3.3l-9.9.7C.8 4 .1 3.4 0 2.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M0 2.6C0 1.7.6 1 1.4 1L14.9 0c.8 0 1.5.6 1.6 1.4l1 13.5c0 .8-.6 1.5-1.4 1.6-.8 0-1.5-.6-1.6-1.4l-.7-9.9L3.1 17.5.8 15.5 11.5 3.3l-9.9.7C.8 4 .1 3.4 0 2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.c-year-more a::after { content: ""; position: absolute; inset: 0; border-radius: var(--coap-round); } /* the whole card is the link */
.c-year-more a:hover { background: color-mix(in srgb, var(--cb-accent-bg) 80%, black); }
.c-years.layout-four .c-years-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.c-years.layout-four .c-year { padding: 26px 22px; }
.c-years.layout-four .c-year h3 { font-size: 1.3rem; }
.c-years.layout-four .c-year-focus { font-size: 1.05rem; }

/* ---------- Course details ---------- */
.c-courses > .wrap > h2 { text-align: center; margin-bottom: 36px; }
.c-course-list { display: grid; gap: 28px; max-width: 760px; margin-inline: auto; }
.c-course { padding: 30px clamp(20px, 3vw, 36px); background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--coap-round); }
.c-course h3 { margin-bottom: 18px; font-size: 1.5rem; text-transform: uppercase; }
.c-course > * + * { margin-top: .9em; }
.c-courses .c-note { max-width: 760px; margin-inline: auto; }
.c-courses.layout-box .c-course { border-color: transparent; }

/* ---------- Invitation ---------- */
.c-callout .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); overflow: hidden; background: var(--cb-dark); color: var(--cb-on-dark-muted); border-radius: var(--coap-round);
	--cb-heading: var(--cb-on-dark); --cb-ink: var(--cb-on-dark-muted); --cb-muted: var(--cb-on-dark-muted); --cb-accent: var(--cb-accent-on-dark); --coap-h2: var(--cb-on-dark); }
.c-callout-photo { margin: 0; max-height: 460px; overflow: hidden; }
.c-callout-photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.c-callout-body { align-self: center; padding: clamp(32px, 5vw, 64px); }
.c-callout-body h2 { color: var(--cb-on-dark); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.c-callout-body > p { max-width: 60ch; }
.c-callout-body > .c-actions { margin-top: 24px; }
.c-callout.layout-words .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
.c-callout.layout-words .c-callout-photo { display: none; }
.c-callout.layout-words .c-callout-body > p { margin-inline: auto; }
.c-callout.layout-words .c-actions { justify-content: center; }

/* ---------- Figure with photo ---------- */
.c-numbers:not([class*="cb-tone-"]) { background: var(--cb-tint); }
.c-numbers .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.c-numbers-photo { margin: 0; }
.c-numbers-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--coap-round); }
.c-figure { margin: 26px 0 4px; font: 700 clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem)/1.05 var(--cb-display); letter-spacing: -.02em; color: var(--cb-heading); font-variant-numeric: tabular-nums; }
.c-figure-label { font-weight: 600; color: var(--cb-muted); }
.c-numbers.layout-plain .wrap { grid-template-columns: minmax(0, 1fr); max-width: 860px; text-align: center; }
.c-numbers.layout-plain .c-numbers-photo { display: none; }

/* ---------- Two lists ---------- */
.c-lists > .wrap > h2 { margin-bottom: 32px; }
.c-lists-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.c-list-col { padding: 28px clamp(20px, 3vw, 32px); background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--coap-round); }
.c-list-col > * + * { margin-top: 16px; }
.c-lists.layout-box .c-list-col { border-color: transparent; }

/* ---------- Questions and answers ---------- */
.c-faq:not([class*="cb-tone-"]) { background: var(--cb-tint); }
.c-faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.c-faq .c-head { margin: 0; }
.c-faq .cb-accordion { display: grid; gap: 12px; border-top: 0; }
.c-faq .cb-panel { padding-inline: 22px; background: var(--coap-soft); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); }
.c-faq[class*="cb-tone-"] .cb-panel { background: var(--cb-surface); }
.c-faq .cb-panel > summary { padding-block: 16px; font: 600 1.05rem/1.4 var(--cb-display); color: var(--cb-heading); }
.c-faq .cb-panel[open] { border-color: var(--cb-accent-2); }
.c-faq .cb-panel-body { max-width: none; }
.c-faq .cb-panel-body > * + * { margin-top: .8em; }
.c-faq.layout-above .wrap { grid-template-columns: minmax(0, 1fr); }
.c-faq.layout-above .cb-accordion { max-width: 900px; }
.c-faq-photo { display: none; margin: 0; }
.c-faq.layout-photo .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 24px; }
.c-faq.layout-photo .c-faq-photo { display: block; grid-row: 1 / span 2; align-self: stretch; }
.c-faq.layout-photo .c-faq-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--coap-round); }
.c-faq.layout-photo .c-head, .c-faq.layout-photo .cb-accordion { grid-column: 2; }

/* ---------- Testimonials ---------- */
.c-quotes:not([class*="cb-tone-"]) { background: var(--coap-soft); }
.c-quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.c-quote { position: relative; margin: 0; padding: 56px 28px 28px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--coap-round); }
.c-quote::before { content: "\201C"; position: absolute; top: 14px; left: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cb-accent-bg); color: var(--cb-on-accent); font: 700 34px/1 Georgia, serif; padding-top: 12px; }
.c-quote blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; } /* no inherited blockquote rule (Bootstrap from other plugins) */
.c-quote blockquote p { font-size: 1rem; line-height: 1.6; }
.c-quote figcaption { margin-top: 16px; font-weight: 700; color: var(--cb-heading); }
.c-quotes.layout-stack .c-quotes-grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* ---------- Instructors ---------- */
.c-people-list { display: grid; gap: 32px; }
.c-person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: start; }
.c-person + .c-person { padding-top: 32px; border-top: 1px solid var(--cb-line); }
.c-person-photo { margin: 0; }
.c-person-photo img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.c-person-body h3 { margin-bottom: 8px; font-size: 1.35rem; }
.c-person-body > * + p { margin-top: .8em; }

/* ---------- Course dates ---------- */
.c-schedule:not([class*="cb-tone-"]) { background: var(--coap-soft); }
.c-schedule .c-head { margin-bottom: 28px; }
.c-schedule-list:empty { min-height: 60px; border: 1px dashed var(--cb-line); border-radius: var(--coap-round); }
.c-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.c-legend li { display: flex; align-items: center; gap: 10px; }
.c-legend li::before { content: ""; width: 14px; height: 14px; border-radius: 2px; background: var(--coap-q, var(--cb-dark)); }
/* The quarter colours are data, not brand: they match the course schedule's own category colours. */
.c-legend-fall { --coap-q: #D1A43A; }
.c-legend-winter { --coap-q: #3F9FC4; }
.c-legend-spring { --coap-q: #4C9A6A; }
.c-legend-holiday { --coap-q: #1c1c1c; }
.c-schedule > .wrap > .c-actions { margin-top: 32px; justify-content: center; }
.c-schedule.layout-box .wrap { padding: clamp(24px, 4vw, 48px); background: var(--cb-surface); border-radius: var(--coap-round); }

/* ---------- Home page: preserve the original Elementor composition ----------
 *
 * The home page did not use the generic component proportions used elsewhere on the
 * site. Keep these rules page-specific so the reusable Cantata components remain
 * available to the other rebuilt pages while the public home page retains its exact
 * 1140px/980px frames, portrait imagery and deliberately oversized feature panel.
 */
@media (min-width: 1081px) {
	.home .site-head { position: static; }
	.home .util .wrap { min-height: 40px; }
	.home .notice .wrap { padding-block: 13px; }
	.home .site-head .bar { min-height: 133px; }
	.home .brand img { width: 130px; }
	.home .site-nav > .btn { display: none; }

	.home main > .c-hero .wrap {
		width: min(100% - 64px, 1140px);
		max-width: 1140px;
		min-height: 636px;
		margin-inline: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.home .c-hero-body { padding: 0 70px 0 90px; }
	.home .c-hero :is(h1, h2) { font-size: 3.2rem; line-height: 1; }
	.home .c-hero-sub { max-width: none; margin-top: 32px; line-height: 1.25; }
	.home .c-hero-photo img { height: 636px; min-height: 636px; object-fit: cover; object-position: center; }

	.home main > .c-split {
		padding-block: 32px;
		margin-top: 64px;
		margin-bottom: 112px;
	}
	.home .c-split .wrap {
		width: min(100% - 64px, 1140px);
		grid-template-columns: minmax(0, 524px) minmax(0, 568px);
		gap: 48px;
	}
	.home .c-split-photo { display: flex; justify-content: center; }
	.home .c-split-photo img {
		width: auto;
		height: 479px;
		aspect-ratio: auto;
		object-fit: fill;
		border-radius: 20px;
	}
	.home .c-split-body { padding: 0 40px 0 20px; line-height: 1.25; }
	.home .c-split-body > h2 { margin-bottom: 32px; font-size: 2.5rem; line-height: 1; }
	.home .c-split-body > p + p { margin-top: 20px; }

	.home main > .c-callout { padding-block: 48px; margin: 0 0 80px; }
	.home .c-callout .wrap {
		width: min(100% - 64px, 1140px);
		height: 286px;
		grid-template-columns: minmax(0, 418px) minmax(0, 1fr);
		gap: 48px;
		overflow: visible;
		border-radius: 24px;
	}
	.home .c-callout-photo {
		height: 382px;
		max-height: none;
		margin: -48px 0;
		overflow: hidden;
		border-radius: 24px;
	}
	.home .c-callout-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: left 18%; }
	.home .c-callout-body { padding: 48px 48px 48px 0; }
	.home .c-callout-body h2 { margin-bottom: 28px; font-size: 2.5rem; line-height: 1.2; }
	.home .c-callout-body > p { line-height: 1.25; }

	.home main > .c-schedule { padding-block: 64px; }
	.home .c-schedule > .wrap { width: min(100% - 64px, 980px); }
	.home .c-schedule .c-head { max-width: none; margin-bottom: 40px; text-align: center; }
	.home .c-schedule .c-head h2 { color: var(--cb-heading); font-size: 2.5rem; line-height: 1; }
	.home .coap-schedule--compact .coap-schedule__items {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
	.home .coap-schedule--compact .coap-schedule__item {
		display: block;
		min-height: 112px;
		padding: 14px 18px;
		border: 1px solid var(--coap-q, var(--cb-line));
		border-left-width: 5px;
		border-radius: 14px;
		background: transparent;
	}
	.home .coap-schedule--compact .coap-schedule__card-date { display: block; margin-bottom: 10px; font-size: .82rem; line-height: 1; }
	.home .coap-schedule--compact .coap-schedule__title { display: block; color: var(--cb-ink); font: 700 1.25rem/1 var(--cb-display); text-decoration: none; }
	.home .coap-schedule--compact .coap-schedule__title:hover { color: var(--cb-accent); }
	.home .c-schedule .c-legend { margin-top: 48px; }
	.home .c-schedule > .wrap > .c-actions { margin-top: 48px; }

	.home main > .c-years { padding-block: 64px; }
	.home .c-years > .wrap { width: min(100% - 64px, 1140px); }
	.home .c-years .c-head { height: 94px; margin-bottom: 80px; }
	.home .c-years-grid { gap: 32px; }
	.home .c-year { height: 362px; padding: 32px; border-radius: 24px; line-height: 1.25; }
	.home .c-year-more a::after { border-radius: 24px; }

	.home main > .c-features { padding: 32px 0 0; }
	.home main > .c-features.layout-box > .wrap {
		width: min(100% - 64px, 1140px);
		min-height: 984px;
		padding: 64px 64px 80px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
		border-radius: 100px 100px 0 0;
	}
	.home .c-features.layout-box .c-head {
		width: 780px;
		max-width: 100%;
		margin: 0 auto 48px;
	}
	.home .c-features.layout-box .c-head h2 { font-size: 1.25rem; line-height: 1; font-weight: 700; }
	.home .c-features.layout-box .c-head > p { margin-top: 28px; font-size: 2.5rem; line-height: 1.2; }
	.home .c-features.layout-box .c-feature { min-height: 225px; padding: 32px; border-radius: 25px; }
	.home .c-features.layout-box .c-feature h3 { font-size: 1.7rem; line-height: 1; }
	.home .c-features.layout-box .c-feature p { line-height: 1.25; color: var(--cb-on-dark); }
	.home .c-features.layout-box .c-features-photo img { min-height: 0; border-radius: 25px; }
	.home .c-features.layout-box .wrap > .c-actions { margin-top: 16px; }

	.home .site-foot > .wrap { width: 100%; padding-top: 44px; }
	.home .site-foot .foot-grid { display: block; width: min(100% - 64px, 1140px); margin-inline: auto; }
	.home .site-foot .foot-marks { margin-top: 18px; }
	.home .site-foot .legal {
		justify-content: flex-end;
		margin-top: 28px;
		padding: 7px max(32px, calc((100% - 1140px) / 2));
		border: 0;
		background: var(--cb-bg);
		color: var(--cb-heading);
	}
	.home .site-foot .legal p,
	.home .site-foot .legal li:not(:first-child) { display: none; }
	.home .site-foot .legal a { color: var(--cb-heading); }
}

/* ---------- Documents ---------- */
.c-docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.c-docs-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; padding: 16px 20px; border-radius: var(--cb-radius); background: var(--cb-accent-bg); color: var(--cb-on-accent); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.c-docs-list a::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.c-docs-list a:hover { background: color-mix(in srgb, var(--cb-accent-bg) 80%, black); }
.c-docs .c-head { padding-bottom: 14px; border-bottom: 2px solid var(--cb-accent-2); max-width: none; }
.c-docs.layout-list .c-docs-list { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
.c-docs.layout-list .c-docs-list a { padding: 14px 0; border-radius: 0; background: none; color: var(--cb-accent); border-bottom: 1px solid var(--cb-line); text-transform: none; }

/* ---------- Contact and map ---------- */
.c-contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.c-contact-map { overflow: hidden; border-radius: var(--coap-round); background: var(--cb-tint); }
.c-contact-map iframe { display: block; width: 100%; height: 440px; border: 0; }
.c-contact-list { margin: 18px 0 28px; padding: 0; list-style: none; }
.c-contact-list li { position: relative; padding-left: 30px; }
.c-contact-list li + li { margin-top: 10px; }
.c-contact-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--cb-accent-2); -webkit-mask: var(--coap-at) center / contain no-repeat; mask: var(--coap-at) center / contain no-repeat; }
.c-at-place { --coap-at: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a8 8 0 0 0-8 8c0 6 8 14 8 14s8-8 8-14a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); }
.c-at-phone { --coap-at: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.c-at-mail { --coap-at: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E"); }
.c-contact.layout-map-right .c-contact-map { order: 2; }

/* ---------- Form ---------- */
.c-form .wrap { width: min(100% - 2 * var(--gutter), 860px); }
.c-form.layout-wide .wrap { width: min(100% - 2 * var(--gutter), var(--wrapw)); }
.c-form-slot:empty { min-height: 120px; border: 1px dashed var(--cb-line); border-radius: var(--coap-round); }
/* Gravity Forms, in the site's type and colours */
.c-form .gform_wrapper { font-family: var(--cb-body); }
.c-form .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) { border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 10px 12px; font: inherit; }
.c-form .gform_wrapper :is(.gform_button, input[type="submit"]) { background: var(--cb-accent-bg); color: var(--cb-on-accent); border: 0; border-radius: var(--cb-radius); padding: .85em 1.6em; font: 700 1rem/1.2 var(--cb-body); text-transform: uppercase; cursor: pointer; }

/* ---------- Picture cards ---------- */
.c-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.c-card { display: flex; flex-direction: column; gap: 16px; }
.c-card-photo { margin: 0; }
.c-card-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--coap-round); }
.c-card > :is(h3, p:not(.c-actions)) { margin: 0; }
.c-card .c-actions { margin-top: auto; }
.c-card .btn { width: 100%; }
.c-cards.layout-three .c-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-cards.layout-two .c-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- phones and small tablets ---------- */
@media (max-width: 1020px) {
	.c-years.layout-four .c-years-grid, .c-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.c-head-split, .c-split .wrap, .c-numbers .wrap, .c-faq .wrap, .c-contact .wrap, .c-callout .wrap, .c-lists-grid, .c-years-grid { grid-template-columns: minmax(0, 1fr); }
	.c-hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.c-hero-body { padding: 44px var(--gutter); }
	.c-hero-photo img { min-height: 0; aspect-ratio: 4 / 3; }
	main .c-hero .c-hero-photo::after, main .c-hero.layout-flip .c-hero-photo::after { right: 0; }
	.c-hero.layout-framed .wrap { padding-block: 44px; }
	.c-hero.layout-cover .c-hero-body { max-width: none; padding-block: 72px; }
	.c-split.layout-right .c-split-photo, .c-contact.layout-map-right .c-contact-map { order: 0; }
	.c-faq.layout-photo .wrap { grid-template-columns: minmax(0, 1fr); }
	.c-faq.layout-photo :is(.c-faq-photo, .c-head, .cb-accordion) { grid-column: 1; grid-row: auto; }
	.c-faq.layout-photo .c-faq-photo img { min-height: 0; aspect-ratio: 16 / 9; }
	.c-features.layout-box .wrap { grid-template-columns: minmax(0, 1fr); }
	.c-features.layout-box .c-feature, .c-features.layout-box .c-features-photo { grid-column: 1 !important; grid-row: auto !important; }
	.c-features.layout-box .c-features-photo { order: 5; }
	.c-features.layout-box .c-features-photo img { min-height: 0; aspect-ratio: 4 / 3; }
	.c-features.layout-box .wrap > .c-actions { order: 6; }
	.c-callout-photo img { min-height: 0; aspect-ratio: 16 / 9; }
	.c-person { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
	.c-person-photo img { width: 96px; height: 96px; }
	.c-contact-map iframe { height: 320px; }
	.c-year-more { top: 18px; right: 18px; }
	.c-year { padding: 26px 22px; }
}
@media (max-width: 560px) {
	.c-years.layout-four .c-years-grid, .c-cards-grid { grid-template-columns: minmax(0, 1fr); }
	.c-cards.layout-four .c-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.c-cards .btn { padding-inline: .8em; font-size: .9rem; }
	.c-person { grid-template-columns: minmax(0, 1fr); }
	.c-legend { justify-content: flex-start; }
	.foot-grid { align-items: flex-start; }
}

/* The LMS catalog needs card width, rather than the ordinary prose measure. */
.coap-courses-content .courses_filters { flex-wrap: wrap; gap: 20px; }
.coap-courses-content .courses_filters__title { display: none; }
.coap-courses-content .courses_filters__activities { flex-wrap: wrap; gap: 12px; margin-left: 0; }
.coap-courses-content .stm_lms_courses__archive_wrapper { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.coap-courses-content .stm_lms_courses__archive_filter,
.coap-courses-content .stm_lms_courses__archive { width: 100%; min-width: 0; margin: 0 !important; padding: 0; float: none; }
.coap-courses-content .stm_lms_courses__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.coap-courses-content .stm_lms_courses__grid .stm_lms_courses__single { width: 100%; min-width: 0; padding: 0; margin: 0; }
.coap-courses-content .stm_lms_courses__single__inner { height: 100%; border: 1px solid #dce2e8; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgb(9 40 76 / 6%); }
.coap-courses-content .stm_lms_courses__single--image { margin: 0 0 18px; border-radius: 12px 12px 0 0; overflow: hidden; }
.coap-courses-content .stm_lms_courses__single--image__container { height: 210px; }
.coap-courses-content .stm_lms_courses__single--image img { width: 100%; height: 210px; object-fit: cover; border-radius: 0; }
.coap-courses-content .stm_lms_courses__single--inner { padding: 0 22px 22px; }
.coap-courses-content .stm_lms_courses__single--title h5 { font-size: 20px; line-height: 1.4; margin: 8px 0 18px; overflow-wrap: anywhere; }
.coap-courses-content .stm_lms_courses__single--meta { flex-wrap: wrap; gap: 12px; }
.coap-courses-content .stm_lms_courses__single--info { left: 0; right: 0; top: 0; padding: 24px; border-radius: 12px; }
@media (max-width: 1000px) {
 .coap-courses-content .stm_lms_courses__archive_wrapper { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
 .coap-courses-content .stm_lms_courses__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
 .coap-courses-content .stm_lms_courses__archive_wrapper { grid-template-columns: minmax(0, 1fr); }
 .coap-courses-content .courses_filters__activities { width: 100%; }
 .coap-courses-content .courses_filters__activities > * { max-width: 100%; margin-left: 0; }
 .coap-courses-content .courses_filters__search { width: 100%; }
 .coap-courses-content .courses_filters__sorting { flex-wrap: wrap; }
}
.coap-courses-content .courses_filters__activities .lms_courses { min-width: 0; max-width: 100%; margin: 0; }
.coap-courses-content .courses_filters__activities .sort { display: flex; flex-wrap: wrap; gap: 12px; }
.coap-courses-content .stm_lms_courses_grid__sort { min-width: 0; max-width: 100%; }
.coap-courses-content .courses_filters__switcher { margin: 0; }
.coap-courses-content .stm_lms_courses__single--term { color: #586674; }
@media (max-width: 767px) {
 .coap-courses-content .lms_courses.search { width: 100%; }
 .coap-courses-content .stm_lms_courses_grid__sort { display: flex; flex-wrap: wrap; }
 .coap-courses-content .stm_lms_courses_grid__sort select { min-width: 0; max-width: 100%; }
}
