/* VAISEF components (contract v1 prototype). Colours, fonts and corners come only from --cb-* tokens,
   so every component works in each tone it lists. Layout classes change CSS only, never markup. */

.c-star { width: 14px; height: 16px; flex: none; }
.c-star { color:var(--cb-accent-2); }
.c-star:not([fill]) { fill:currentColor; }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c-lead { font-size: 20px; line-height: 1.6; color: var(--cb-ink); }
.c-more { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--cb-display); letter-spacing: .08em; text-transform: uppercase; color: var(--cb-accent); text-decoration: none; }
.c-more:where(:not([data-ke-model]))::after { content: "\2192"; transition: transform .15s ease; }
.c-more:hover::after { transform: translateX(3px); }

/* ---------- Hero: framed photo with a tinted block behind it and a badge over its corner ---------- */
section.c-hero { padding-block: 56px 104px; }
.c-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.c-hero :is(h1, h2) { font-size: clamp(36px, 4.7vw, 60px); line-height: 1; color: var(--cb-heading); }
.c-hero :is(h1, h2) em { font-style: normal; color: var(--cb-accent); }
.c-hero-sub { margin-top: 22px; font-size: 19px; color: var(--cb-muted); max-width: 46ch; }
.c-hero .c-actions { margin-top: 30px; }
.c-hero-photo { position: relative; margin: 0; }
.c-hero-photo::before { content: ""; position: absolute; top: -20px; right: -20px; width: 64%; bottom: 40px; background: var(--cb-tint); border-radius: var(--cb-radius); }
.cb-tone-tint .c-hero-photo::before { background: var(--cb-surface); }
.cb-tone-dark .c-hero-photo::before { background: color-mix(in srgb, var(--cb-on-dark) 14%, transparent); }
.c-hero-photo img { position: relative; display: block; width: 100%; aspect-ratio: 1.22; object-fit: cover; border-radius: var(--cb-radius); }
.c-badge { position: absolute; left: -28px; bottom: -32px; display: grid; gap: 6px; max-width: 250px; padding: 20px 24px 18px; border-radius: var(--cb-radius);
	background: var(--cb-heading); color: var(--cb-sec-bg, var(--cb-bg)); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.c-badge b { display: flex; align-items: center; gap: 10px; font: 700 32px/1 var(--cb-display); }
.c-badge span { font-size: 14px; line-height: 1.4; opacity: .82; }
.c-badge .c-star { width: 20px; height: 23px; }

.c-hero.layout-flip .c-hero-photo { order: -1; }
.c-hero.layout-flip .c-hero-photo::before { right: auto; left: -20px; }
.c-hero.layout-flip .c-badge { left: auto; right: -28px; }

/* words over the photo: the section turns dark whatever its tone, so the tokens are remapped here */
.c-hero.layout-cover {
	--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-sec-bg: var(--cb-dark);
	position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(80vh, 740px); padding-block: 96px; background: var(--cb-dark); }
.c-hero.layout-cover .wrap { grid-template-columns: minmax(0, 1fr); }
.c-hero.layout-cover .c-hero-body { max-width: 660px; }
.c-hero.layout-cover .c-hero-photo { position: absolute; inset: 0; z-index: -1; }
.c-hero.layout-cover .c-hero-photo::before { display: none; }
.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) 72%, transparent) 48%, color-mix(in srgb, var(--cb-dark) 20%, transparent) 100%); }
.c-hero.layout-cover .c-hero-photo img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.c-hero.layout-cover .c-badge { left: auto; right: max(16px, calc((100% - 1280px) / 2)); bottom: 48px; z-index: 1; }
.c-hero.layout-cover .btn-blue { background: var(--cb-accent-on-dark); color: var(--cb-dark); border-color: var(--cb-accent-on-dark); }
.c-hero.layout-cover .btn-blue:hover { background: var(--cb-on-dark); border-color: var(--cb-on-dark); color: var(--cb-dark); }
.c-hero.layout-cover .btn-line { color: var(--cb-on-dark); border-color: var(--cb-on-dark); }
.c-hero.layout-cover .btn-line:hover { background: var(--cb-on-dark); color: var(--cb-dark); }

/* ---------- Photo with a checklist: gold rule under the photo, starred checklist ---------- */
.c-feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.c-feature-photo { position: relative; margin: 0; }
.c-feature-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cb-radius); }
.c-feature-photo::after { content: ""; position: absolute; left: 28px; bottom: -8px; width: 96px; height: 6px; border-radius: 3px; background: var(--cb-accent-2); }
.c-feature-body { display: flex; flex-direction: column; gap: 16px; }
.c-feature h2 { font-size: clamp(28px, 3vw, 38px); color: var(--cb-heading); }
.c-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.c-checks li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--cb-line); color: var(--cb-ink); }
.c-checks li:last-child { border-bottom: 0; }
.c-checks b { color: var(--cb-heading); }
.c-checks .c-star { margin-top: 5px; }
.c-feature .c-actions { margin-top: 8px; }

.c-feature.layout-right .c-feature-photo { order: 2; }
.c-feature.layout-wide .wrap { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; }
.c-feature.layout-wide .c-feature-photo img { aspect-ratio: 5 / 4; }

/* ---------- Cards: accent rule on top, starred label, arrow link pinned to the bottom ---------- */
.c-cards-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.c-cards-head h2 { font-size: clamp(28px, 3vw, 38px); color: var(--cb-heading); }
.c-cards-head p { margin-top: 10px; color: var(--cb-muted); max-width: 60ch; }
.c-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.c-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-top: 3px solid var(--cb-accent); border-radius: var(--cb-radius); }
.c-card h3 { font-size: 21px; color: var(--cb-heading); }
.c-card p { color: var(--cb-muted); font-size: 16px; }
.c-card .c-label { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--cb-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cb-accent); }
.c-card .c-label .c-star { width: 10px; height: 12px; }
.c-card .c-more { margin-top: auto; padding-top: 8px; }

.c-cards.layout-two .c-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* an odd number of cards two across: the last one takes the whole row instead of leaving a hole beside it */
.c-cards.layout-two .c-cards-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.c-cards.layout-list .c-cards-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--cb-heading); }
.c-cards.layout-list .c-card { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; grid-template-areas: "label title more" "label text more";
	column-gap: 28px; row-gap: 4px; align-items: center; padding: 22px 4px; background: none; border: 0; border-bottom: 1px solid var(--cb-line); border-radius: 0; }
.c-cards.layout-list .c-label { grid-area: label; }
.c-cards.layout-list .c-card h3 { grid-area: title; }
.c-cards.layout-list .c-card p:not(.c-label) { grid-area: text; }
.c-cards.layout-list .c-card p:is(.cb-actions, .actions), .c-cards.layout-list .c-card :is(.cb-actions, .actions) { grid-area: auto; grid-column: 2; margin-top: 10px; } /* a button added in a card: under its sentence, not over it */
.c-cards.layout-list .c-card .c-more { grid-area: more; margin: 0; padding: 0; }

@media (max-width: 860px) {
	section.c-hero { padding-block: 32px 80px; }
	.c-hero .wrap, .c-feature .wrap, .c-feature.layout-wide .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.c-hero.layout-flip .c-hero-photo, .c-feature.layout-right .c-feature-photo { order: 0; }
	.c-hero-photo::before { right: -8px; top: -12px; }
	.c-badge, .c-hero.layout-flip .c-badge { left: 12px; right: auto; bottom: -28px; }
	.c-hero.layout-cover { min-height: 0; padding-block: 72px; }
	.c-hero.layout-cover .c-hero-photo::after { background: color-mix(in srgb, var(--cb-dark) 80%, transparent); }
	.c-hero.layout-cover .c-badge { display: none; }
	.c-cards-head { flex-direction: column; align-items: flex-start; }
	.c-cards-grid, .c-cards.layout-two .c-cards-grid { grid-template-columns: minmax(0, 1fr); }
	.c-cards.layout-list .c-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "title" "text" "more"; }
}

/* ---------- shared head row ---------- */
.c-stats-head h2, .c-faq-head h2, .c-tabs h2, .c-events-head h2 { font-size: clamp(28px, 3vw, 38px); color: var(--cb-heading); }
.c-stats-head p, .c-faq-head p { margin-top: 10px; color: var(--cb-muted); max-width: 60ch; }

/* ---------- Numbers: big Jost figures led by a gold star, hairlines between ---------- */
.c-stats-head { margin-bottom: 40px; }
.c-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--cb-heading); }
.c-stat { padding: 28px 24px 8px 0; }
.c-stat + .c-stat { padding-left: 24px; border-left: 1px solid var(--cb-line); }
.c-stat-num { display: flex; align-items: center; gap: 12px; font: 700 clamp(40px, 4.4vw, 56px)/1 var(--cb-display); color: var(--cb-heading); letter-spacing: -.01em; white-space: nowrap; } /* "100+" and "6–12" stay whole */
.c-stat-num .c-star { width: 20px; height: 23px; }
.c-stat p:not(.c-stat-num) { margin-top: 12px; color: var(--cb-muted); font-size: 16px; line-height: 1.5; max-width: 26ch; }

.c-stats.layout-badges .c-stats-grid { border-top: 0; gap: 20px; }
.c-stats.layout-badges .c-stat { padding: 26px 24px 24px; border: 0; border-radius: var(--cb-radius); background: var(--cb-heading); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .5); }
.c-stats.layout-badges .c-stat-num { color: var(--cb-sec-bg, var(--cb-bg)); font-size: clamp(34px, 3.4vw, 44px); }
.c-stats.layout-badges .c-stat p:not(.c-stat-num) { color: var(--cb-sec-bg, var(--cb-bg)); opacity: .82; }
.c-stats.layout-beside .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.c-stats.layout-beside .c-stats-head { margin: 0; }
.c-stats.layout-beside .c-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.c-stats.layout-beside .c-stat { padding: 24px 0; border-left: 0; border-top: 1px solid var(--cb-line); }
.c-stats.layout-beside .c-stat:nth-child(even) { padding-left: 28px; }

/* ---------- Call to action: navy band, big faint star, optional photo ---------- */
section.c-cta { position: relative; overflow: hidden; isolation: isolate; }
.c-cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.c-cta-words { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; row-gap: 12px; align-items: end; }
.c-cta h2 { grid-column: 1; font-size: clamp(28px, 3.2vw, 42px); color: var(--cb-heading); max-width: 22ch; text-wrap: balance; } /* (site.css balances every heading too; kept here so the component stands on its own) */
.c-cta-words > p:not(.c-actions) { grid-column: 1; color: var(--cb-ink); font-size: 18px; max-width: 56ch; }
.c-cta .c-actions { grid-column: 2; grid-row: 1 / span 2; }
.c-cta-photo { display: none; margin: 0; }
.c-cta-mark { position: absolute; right: -44px; bottom: -104px; width: 200px; height: 233px; z-index: -1; pointer-events: none;
	opacity: .55; } /* a gold outline: a faint fill mixes to grey on navy */
.c-cta-mark{color:var(--cb-accent-2)}.c-cta-mark:not([fill]){fill:none}.c-cta-mark:not([stroke]){stroke:currentColor}.c-cta-mark:not([stroke-width]){stroke-width:.35}
.cb-tone-tint .c-cta-mark,.c-cta.cb-tone-tint .c-cta-mark{opacity:.12}
.cb-tone-tint .c-cta-mark:not([fill]),.c-cta.cb-tone-tint .c-cta-mark:not([fill]){fill:currentColor}
.cb-tone-tint .c-cta-mark:not([stroke]),.c-cta.cb-tone-tint .c-cta-mark:not([stroke]){stroke:none}

.c-cta.layout-center .c-cta-words { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.c-cta.layout-center h2, .c-cta.layout-center .c-cta-words > p:not(.c-actions) { max-width: 40ch; }
.c-cta.layout-center .c-actions { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 14px; }
.c-cta.layout-center .c-cta-mark { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 300px; height: 350px; }

.c-cta.layout-photo .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.c-cta.layout-photo .c-cta-words { grid-template-columns: minmax(0, 1fr); }
.c-cta.layout-photo .c-cta-mark { right: auto; left: -44px; }
.c-cta.layout-photo .c-actions { grid-column: 1; grid-row: auto; margin-top: 14px; }
.c-cta.layout-photo .c-cta-photo { display: block; position: relative; }
.c-cta.layout-photo .c-cta-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cb-radius); }
.c-cta.layout-photo .c-cta-photo::after { content: ""; position: absolute; left: 28px; bottom: -8px; width: 96px; height: 6px; border-radius: 3px; background: var(--cb-accent-2); }

/* ---------- Questions and answers: the plugin's accordion, drawn VAISEF's way ---------- */
.c-faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.c-faq-head { display: grid; gap: 4px; justify-items: start; position: sticky; top: 24px; }
.c-faq-head .c-more { margin-top: 18px; }
.c-faq .cb-accordion { border-top: 2px solid var(--cb-heading); }
.c-faq .cb-panel { border-bottom: 1px solid var(--cb-line); }
.c-faq .cb-panel > summary { min-height: 68px; padding: 18px 0; font: 600 19px/1.35 var(--cb-display); color: var(--cb-heading); }
.c-faq .cb-panel > summary:where(:not([data-ke-model]))::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cb-tint); color: var(--cb-heading); font: 500 22px/1 var(--cb-display); transition: transform .2s ease, background .2s ease; }
.cb-tone-tint .c-faq .cb-panel > summary:where(:not([data-ke-model]))::after, .c-faq.cb-tone-tint .cb-panel > summary:where(:not([data-ke-model]))::after { background: var(--cb-surface); }
.c-faq .cb-panel[open] > summary:where(:not([data-ke-model]))::after { content: "+"; transform: rotate(45deg); background: var(--cb-accent-2); color: var(--cb-dark); }
.c-faq .cb-panel > summary:hover { color: var(--cb-accent); }
.c-faq .cb-panel-body { padding: 0 48px 24px 0; color: var(--cb-ink); }

.c-faq.layout-above .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 880px; }
.c-faq.layout-above .c-faq-head { position: static; }
.c-faq.layout-boxed .cb-accordion { border-top: 0; display: grid; gap: 12px; }
.c-faq.layout-boxed .cb-panel > summary:where(:not([data-ke-model]))::after { background: var(--cb-tint); }
.c-faq.layout-boxed .cb-panel { border: 1px solid var(--cb-line); border-left: 3px solid var(--cb-accent); border-radius: var(--cb-radius); background: var(--cb-surface); padding: 0 22px; }

/* ---------- Tabs: the plugin's tabs; uppercase Jost with a gold bar, a photo in each panel ---------- */
.c-tabs h2 { margin-bottom: 32px; }
.c-tabs .cb-tablist { gap: 0; margin-bottom: 36px; border-bottom: 1px solid var(--cb-line); }
.c-tabs .cb-tablist [role="tab"] { padding: 16px 24px; margin-bottom: -1px; font: 600 14px/1.2 var(--cb-display); letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); border-bottom: 4px solid transparent; }
.c-tabs .cb-tablist [role="tab"]:hover { color: var(--cb-heading); }
.c-tabs .cb-tablist [role="tab"].is-active { color: var(--cb-heading); border-bottom-color: var(--cb-accent-2); }
.c-tabs .cb-tabpanel { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.c-tabs .cb-tabs.is-ready .cb-tabpanel:not(.is-active) { display: none; }
.c-tab-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.c-tab-body h3 { font-size: 26px; color: var(--cb-heading); }
.c-tab-body p { color: var(--cb-ink); }
.c-tab-body .c-checks { align-self: stretch; }
.c-tabs .cb-tabpanel > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--cb-radius); }

.c-tabs.layout-side .cb-tabs.is-ready { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.c-tabs.layout-side .cb-tablist { flex-direction: column; margin: 0; border-bottom: 0; border-left: 1px solid var(--cb-line); }
.c-tabs.layout-side .cb-tablist [role="tab"] { text-align: left; margin: 0 0 0 -1px; padding: 16px 20px; border-bottom: 0; border-left: 4px solid transparent; }
.c-tabs.layout-side .cb-tablist [role="tab"].is-active { border-left-color: var(--cb-accent-2); background: var(--cb-tint); }
.c-tabs.layout-side .cb-tabs.is-ready .cb-tabpanel { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.c-tabs.layout-side .cb-tabpanel > img { order: -1; aspect-ratio: 21 / 9; }

/* ---------- Events and news: date blocks like the site's event list ---------- */
.c-events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.c-events-list { display: grid; border-top: 2px solid var(--cb-heading); }
.c-event { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--cb-line); }
.c-date { display: grid; justify-items: center; gap: 4px; padding: 12px 0 10px; border: 1px solid var(--cb-line); border-top: 3px solid var(--cb-accent-2); border-radius: var(--cb-radius); background: var(--cb-surface); text-align: center; }
.c-date span { font: 600 12px/1 var(--cb-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cb-accent); }
.c-date b { font: 700 32px/1 var(--cb-display); color: var(--cb-heading); }
.c-event-body { display: grid; gap: 6px; }
.c-event-body h3 { font-size: 20px; color: var(--cb-heading); }
.c-event-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--cb-muted); font-size: 15px; }
.c-event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.c-event-meta svg { width: 16px; height: 16px; color: var(--cb-accent); }
.c-event-body > p:not(.c-event-meta) { color: var(--cb-ink); font-size: 16px; }

.c-events.layout-cards .c-events-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 0; }
.c-events.layout-cards .c-event { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--cb-line); border-radius: var(--cb-radius); background: var(--cb-surface); }
.c-events.layout-cards .c-date { justify-self: start; width: 84px; }
.c-events.layout-compact .c-event { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; padding: 14px 0; }
.c-events.layout-compact .c-date { padding: 8px 0 6px; }
.c-events.layout-compact .c-date b { font-size: 22px; }
.c-events.layout-compact .c-event-body > p:not(.c-event-meta) { display: none; }

/* ---------- Quote: big Jost words, gold star, the person's photo ---------- */
.c-quote-fig { margin: 0 auto; max-width: 880px; display: grid; justify-items: center; text-align: center; gap: 24px; }
.c-quote-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.c-quote-body { display: grid; justify-items: center; gap: 22px; }
.c-quote-body > .c-star { width: 26px; height: 30px; }
.c-quote blockquote { margin: 0; }
.c-quote blockquote p { font: 500 clamp(24px, 2.8vw, 34px)/1.35 var(--cb-display); color: var(--cb-heading); text-wrap: balance; }
.c-quote figcaption { display: grid; gap: 2px; }
.c-quote figcaption b { font: 700 15px/1.3 var(--cb-display); letter-spacing: .08em; text-transform: uppercase; color: var(--cb-heading); }
.c-quote figcaption span { color: var(--cb-muted); font-size: 15px; }
/* centred (the default): the person's photo on top in a gold ring, standing in for the star */
.c-quote:not(.layout-photo):not(.layout-rule) .c-quote-photo { order: 0; width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--cb-sec-bg, var(--cb-bg)), 0 0 0 6px var(--cb-accent-2); }
.c-quote:not(.layout-photo):not(.layout-rule) .c-quote-body > .c-star { display: none; }

.c-quote.layout-photo .c-quote-fig { max-width: none; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; justify-items: start; text-align: left; }
.c-quote.layout-photo .c-quote-photo { order: 0; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--cb-radius); }
.c-quote.layout-photo .c-quote-body { justify-items: start; }

.c-quote.layout-rule .c-quote-fig { max-width: 820px; justify-items: start; text-align: left; margin: 0; }
.c-quote.layout-rule .c-quote-photo { display: none; }
.c-quote.layout-rule .c-quote-body { justify-items: start; padding-left: 32px; border-left: 4px solid var(--cb-accent-2); }

@media (max-width: 860px) {
	.c-stats-grid, .c-stats.layout-beside .c-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.c-stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.c-stats.layout-beside .wrap, .c-faq .wrap, .c-cta.layout-photo .wrap, .c-quote.layout-photo .c-quote-fig { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.c-cta-words { grid-template-columns: minmax(0, 1fr); }
	.c-cta-mark { display: none; } /* no empty corner to hold it on a phone */
	.c-cta .c-actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
	.c-faq-head { position: static; }
	.c-tabs .cb-tabpanel, .c-tabs.layout-side .cb-tabs.is-ready { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.c-tabs.layout-side .cb-tablist { flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--cb-line); }
	.c-tabs.layout-side .cb-tabs.is-ready .cb-tabpanel { grid-column: 1; grid-row: auto; }
	.c-tabs .cb-tabpanel > img { order: -1; }
	.c-events-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.c-event, .c-events.layout-compact .c-event { grid-template-columns: 72px minmax(0, 1fr); }
	.c-event > .c-more { grid-column: 2; }
	.c-event { align-items: start; } /* entries run several lines here: the date sits level with the title, not halfway down */
	.c-events.layout-cards .c-events-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Page top: crumbs joined by gold stars, a big title with a gold bar under it ---------- */
section.c-pagehead { padding-block: 64px; }
.c-pagehead .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.c-pagehead-body { display: grid; gap: 18px; justify-items: start; }
.c-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 13px/1 var(--cb-display); letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); }
.c-crumbs a { color: var(--cb-accent); text-decoration: none; }
.c-crumbs a:hover { text-decoration: underline; }
/* the separators are VAISEF's star, drawn here (the plugin writes only the links and the page's name) */
.c-crumbs > * + *::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 10px; vertical-align: -1px; background: var(--cb-accent-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0C12.9 9.6 14.8 12.4 24 14C14.8 15.6 12.9 18.4 12 28C11.1 18.4 9.2 15.6 0 14C9.2 12.4 11.1 9.6 12 0Z'/%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 28'%3E%3Cpath d='M12 0C12.9 9.6 14.8 12.4 24 14C14.8 15.6 12.9 18.4 12 28C11.1 18.4 9.2 15.6 0 14C9.2 12.4 11.1 9.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* the older page head's breadcrumb (site.css, generated) wears the same look: one breadcrumb style on the site */
.page-head .crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 13px/1 var(--cb-display, var(--display)); letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); }
.page-head .crumb a { color: var(--cb-accent); text-decoration: none; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head .crumb > * + *::before { margin-left: 0; content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 10px; vertical-align: -1px; background: var(--cb-accent-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0C12.9 9.6 14.8 12.4 24 14C14.8 15.6 12.9 18.4 12 28C11.1 18.4 9.2 15.6 0 14C9.2 12.4 11.1 9.6 12 0Z'/%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 28'%3E%3Cpath d='M12 0C12.9 9.6 14.8 12.4 24 14C14.8 15.6 12.9 18.4 12 28C11.1 18.4 9.2 15.6 0 14C9.2 12.4 11.1 9.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.c-pagehead :is(h1, h2) { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; color: var(--cb-heading); }
.c-pagehead :is(h1, h2)::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 20px; border-radius: 3px; background: var(--cb-accent-2); }
.c-pagehead .c-lead { max-width: 54ch; }
.c-pagehead-photo { margin: 0; }
.c-pagehead-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--cb-radius); }

.c-pagehead.layout-plain .wrap { grid-template-columns: minmax(0, 1fr); }
.c-pagehead.layout-plain .c-pagehead-photo { display: none; }
.c-pagehead.layout-band { position: relative; isolation: isolate; overflow: hidden; padding-block: 96px 88px;
	--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-accent-2: var(--cb-accent-on-dark); background: var(--cb-dark); }
.c-pagehead.layout-band .wrap { grid-template-columns: minmax(0, 1fr); }
.c-pagehead.layout-band .c-pagehead-body { max-width: 720px; }
.c-pagehead.layout-band .c-pagehead-photo { position: absolute; inset: 0; z-index: -1; }
.c-pagehead.layout-band .c-pagehead-photo img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.c-pagehead.layout-band .c-pagehead-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--cb-dark) 94%, transparent) 0%, color-mix(in srgb, var(--cb-dark) 76%, transparent) 55%, color-mix(in srgb, var(--cb-dark) 40%, transparent) 100%); }

/* ---------- People: square photos, uppercase names, an accent rule on the photo ---------- */
.c-people-head { margin-bottom: 36px; }
.c-people-head h2 { font-size: clamp(28px, 3vw, 38px); color: var(--cb-heading); }
.c-people-head p { margin-top: 10px; color: var(--cb-muted); max-width: 60ch; }
.c-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.c-person { display: grid; align-content: start; gap: 16px; }
.c-person > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--cb-radius); border-bottom: 4px solid var(--cb-accent-2); }
.c-person-body { display: grid; gap: 4px; justify-items: start; }
.c-person h3 { font: 700 17px/1.3 var(--cb-display); letter-spacing: .06em; text-transform: uppercase; color: var(--cb-heading); }
.c-role { color: var(--cb-accent); font-weight: 700; font-size: 15px; }
.c-bio { margin-top: 6px; color: var(--cb-muted); font-size: 15.5px; line-height: 1.55; }
.c-person .c-more { margin-top: 10px; }

.c-people.layout-three .c-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.c-people.layout-three .c-person > img { aspect-ratio: 4 / 5; }
.c-people.layout-list .c-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--cb-heading); }
.c-people.layout-list .c-person { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--cb-line); }
.c-people.layout-list .c-person > img { border-radius: 50%; border-bottom: 0; box-shadow: 0 0 0 3px var(--cb-sec-bg, var(--cb-bg)), 0 0 0 5px var(--cb-accent-2); }
.c-people.layout-list .c-bio { display: none; }
.c-people.layout-list .c-person .c-more { margin-top: 6px; }

@media (max-width: 860px) {
	.c-pagehead .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.c-people-grid, .c-people.layout-three .c-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.c-people.layout-list .c-people-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
	.c-people-grid, .c-people.layout-three .c-people-grid { grid-template-columns: minmax(0, 1fr); }
}
/* a phone: numbers one to a row, so a figure and its line have the width they need */
@media (max-width: 480px) {
	.c-stats-grid, .c-stats.layout-beside .c-stats-grid { grid-template-columns: minmax(0, 1fr); }
	.c-stats:not(.layout-badges) .c-stat, .c-stats.layout-beside .c-stat:nth-child(even) { padding-left: 0; border-left: 0; }
	.c-stats:not(.layout-badges) .c-stat + .c-stat { border-top: 1px solid var(--cb-line); }
	.c-stat p:not(.c-stat-num) { max-width: none; }
}
/* a line break written for the wide layout would strand a word on a phone; and the call to action's heading
   (wide capitals) steps down a little there, so "network of schools" isn't split by a few pixels */
@media (max-width: 600px) { .c-cta h2 br { display: none; } }
@media (max-width: 480px) { .c-cta h2 { font-size: clamp(24px, 7vw, 28px); } }

/* a dark section last on the page (a navy call to action) would run straight into the navy footer: a gold rule
   marks where the page ends and the footer begins */
main > section:last-child:is(.cb-tone-dark, .navy, .c-cta:not(.cb-tone-tint):not(.cb-tone-accent):not(.cb-tone-light)) { border-bottom: 4px solid var(--cb-accent-2, var(--gold)); }

/* Session control uses Wild Apricot's own signed login/logout form. */
.util nav, .mob-actions { align-items: center; }
.vaisef-session, .vaisef-session .wa_login_shortcode, .vaisef-session form { display: inline-flex; align-items: center; margin: 0; }
.vaisef-session form > p { display: none; }
.vaisef-session input[type=submit] { border: 0; padding: 0; font: inherit; color: inherit; background: transparent; cursor: pointer; }
.mob-actions .vaisef-session { min-height: 44px; padding: 10px 18px; border: 1px solid currentColor; border-radius: var(--cb-radius); }
.c-tabs .cb-tabpanel:has(> .c-text-body:only-child) { grid-template-columns: minmax(0, 1fr); align-items: start; }
.vwa-date .d { font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; }
.vwa-date .m { white-space: nowrap; }

.c-more:where(:not([data-ke-model])) > svg { display: none; } /* This component supplies its arrow with ::after. */

/* All checklist markers use the same dot, including saved star markup. */
:is(.checks, .c-checks) li > :is(.star, .c-star) { display: none; }
:is(.checks, .c-checks) li:has(> :is(.star, .c-star))::before {
	content: ""; width: 6px; height: 6px; margin: 9px 4px 0;
	border-radius: 50%; background: var(--aqua); flex: none;
}

/* Compact section navigation buttons; long labels wrap without dropping the arrow. */
.c-cards .c-card:has(> h3 + a.c-more:is(:empty,.c-more-icon-only)) {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px;
	grid-template-areas: "title more"; align-items: center; gap: 12px;
	padding: 16px 20px; border: 1px solid var(--cb-line); border-radius: var(--cb-radius);
	transition: border-color .15s ease, background-color .15s ease;
}
.c-cards .c-card > h3:has(+ a.c-more:is(:empty,.c-more-icon-only)) {
	grid-area: title; margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere;
}
.c-cards .c-card > h3 + a.c-more:is(:empty,.c-more-icon-only) {
	grid-area: more; position: static; margin: 0; padding: 0;
	width: 44px; min-height: 44px; justify-content: center; font-size: 22px;
}
.c-cards .c-card > h3 + a.c-more:is(:empty,.c-more-icon-only)::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
}
.c-cards .c-card:has(> h3 + a.c-more:is(:empty,.c-more-icon-only)):is(:hover, :focus-within) {
	border-color: var(--cb-accent); background: var(--cb-bg);
}
.c-cards .c-card:has(> h3 + a.c-more:is(:empty,.c-more-icon-only)):focus-within {
	outline: 2px solid var(--cb-accent); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.c-cards .c-card:has(> h3 + a.c-more:is(:empty,.c-more-icon-only)),
	.c-cards .c-card > h3 + a.c-more:is(:empty,.c-more-icon-only)::after { transition: none; }
}

/* Use the header gutter across page headings and content, including framework sections. */
.wrap { width: min(100% - 32px, var(--wrap)); }

/* Default prose follows the same left edge as the section heading and header. */
.c-text .c-text-body { width: 100%; max-width: 80%; margin-inline: 0; text-align: left; }
.c-text .c-text-body :is(.narrow, .cb-text) { max-width: none; margin-inline: 0; }
/* Plain page introductions follow the same reading width as standalone prose. */
.c-pagehead.layout-plain .c-pagehead-body { width: 100%; max-width: 80%; }
.c-pagehead.layout-plain .c-lead { max-width: none; }
@media (max-width: 860px) {
	.c-text .c-text-body, .c-pagehead.layout-plain .c-pagehead-body { max-width: 100%; }
}
.c-live .wrap { max-width: var(--wrap); }
.c-live .c-live-intro { max-width: 1040px; text-align: left; }

/* Keep centered CTA content centered within its full section. */
.c-cta.layout-center .c-cta-words { width: 100%; justify-self: center; }

/* Button labels keep their palette inside prose. The parent's .c-text-body a and
   legacy .prose a rules otherwise turn solid blue button text teal. Keep these
   less specific than the section-tone button rules so gold/white buttons on
   dark and accent sections retain their contrasting foregrounds. */
:is(.c-text-body, .prose) a.btn { text-decoration: none; }
:is(.c-text-body, .prose) a.btn-blue { color: var(--cb-on-accent, #FFFFFF); }
:is(.c-text-body, .prose) a.btn-line { color: var(--blue); }
:is(.c-text-body, .prose) a.btn-line:hover { color: var(--white); }
:is(.c-text-body, .prose) a:is(.btn-gold, .btn-white) { color: var(--navy); }

/* Native icon owners suppress legacy glyphs even after icon removal. */
.c-more[data-ke-model]::after,.c-more a[data-ke-model]::after,.c-faq .cb-panel > summary[data-ke-model]::after,.qa summary[data-ke-model]::after,.toplink[data-ke-model]::before,.mega ul a[data-ke-model]::after{content:none;display:none}

/* Native icon family defaults also define the reset baseline. Instance settings override these. */
svg.ke-more-icon{display:block;width:1.08em;height:1em;flex-basis:1.08em;flex-shrink:0}
svg.ke-accordion-icon{display:block;width:32px;height:32px;flex-shrink:0;border-radius:50%;padding:5px}
svg.ke-menu-icon,svg.ke-menu-open-icon{width:12px;height:18px;flex-shrink:0;color:var(--teal)}
svg.ke-mega-icon{position:absolute;right:2px;top:50%;width:1em;height:1em;color:var(--teal)}
