/* Kindly Edit blocks: general-purpose pieces any page can use, drawn in the site's own colours and type.
   A theme sets these variables (see themes/vaisef-src/options.css); the fallbacks keep a bare theme presentable.
   Headings and paragraphs inside blocks keep the theme's own h2/h3/p styles. */
/* :where() keeps these fallbacks at zero specificity, so a theme's own values win whatever order the CSS loads in. */
:where(:root) {
	--cb-accent: #2f5bd3; --cb-heading: inherit; --cb-ink: inherit; --cb-muted: #5f6675; --cb-line: #dfe3ea;
	--cb-tint: #f3f6fa; --cb-bg: #fff; --cb-display: inherit; --cb-radius: 6px; --cb-gap: 28px;
}

.cb-text { max-width: 72ch; }
.cb-text > * + *, .cb-panel-body > * + *, .cb-tabpanel > * + *, .cb-col > * + *, .cb-media-body > * + * { margin-top: 14px; }
.cb-text h2 + *, .cb-text h3 + * { margin-top: 12px; }
.cb-text > h2:not(:first-child), .cb-text > h3:not(:first-child) { margin-top: 36px; }
/* a block added with + next to words inside a section gets a little room, above and below it. On the block's side and
   at zero specificity, so a theme's own spacing for its sections (and its resets for headings) always wins. */
:where(p, ul, ol, blockquote, .cb-actions) + :where(.cb-accordion, .cb-tabs, .cb-cards, .cb-cols, .cb-gallery, .cb-docs, .cb-timeline, .cb-callout, .cb-picture, .cb-quote) { margin-top: 1.5em; }
:where(.cb-accordion, .cb-tabs, .cb-cards, .cb-cols, .cb-gallery, .cb-docs, .cb-timeline, .cb-callout, .cb-picture, .cb-quote):where(:has(+ :is(h2, h3, h4, p, ul, ol))) { margin-bottom: 1.5em; }
.cb-list { padding-left: 1.25em; }
.cb-list li + li { margin-top: 6px; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cb-rule { border: 0; border-top: 1px solid var(--cb-line); margin-block: 28px; }
.cb-more { font-weight: 700; color: var(--cb-accent); text-decoration: none; }
.cb-more:hover { text-decoration: underline; }
.cb-more::after { content: " \2192"; }
.cb-head { margin-bottom: 32px; max-width: 72ch; }
.cb-head p { margin-top: 10px; color: var(--cb-muted); }

/* photo and words */
.cb-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cb-media.cb-flip .cb-media-photo { order: 2; }
.cb-media-photo { margin: 0; }
.cb-media-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cb-radius); }

/* picture and gallery */
.cb-picture { margin: 0; }
.cb-picture img { width: 100%; height: auto; border-radius: var(--cb-radius); }
.cb-picture figcaption, .cb-gallery figcaption { margin-top: 10px; color: var(--cb-muted); font-size: .9em; }
.cb-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cb-gallery figure { margin: 0; }
.cb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cb-radius); }

/* documents */
.cb-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cb-line); }
.cb-docs li { border-bottom: 1px solid var(--cb-line); }
.cb-docs a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 4px; text-decoration: none; color: inherit; }
.cb-docs a:hover .cb-doc-name { color: var(--cb-accent); text-decoration: underline; }
.cb-doc-type { display: grid; place-items: center; height: 40px; border-radius: 4px; background: var(--cb-tint); color: var(--cb-accent); font: 700 12px/1 var(--cb-display); letter-spacing: .06em; }
.cb-doc-name { font-weight: 700; color: var(--cb-heading); }
.cb-doc-size { color: var(--cb-muted); font-size: .9em; white-space: nowrap; }

/* accordion */
.cb-accordion { border-top: 2px solid var(--cb-heading, currentColor); }
.cb-panel { border-bottom: 1px solid var(--cb-line); }
.cb-panel > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
	min-height: 60px; padding: 14px 0; font: 600 1.12em/1.3 var(--cb-display); color: var(--cb-heading); }
.cb-panel > summary::-webkit-details-marker { display: none; }
.cb-panel > summary::after { content: "+"; flex: none; font-size: 1.5em; line-height: 1; color: var(--cb-accent); font-weight: 400; }
.cb-panel[open] > summary::after { content: "\2212"; }
.cb-panel > summary:hover { color: var(--cb-accent); }
.cb-panel-body { padding: 0 0 22px; max-width: 72ch; }

/* tabs: every panel shows until the script runs, so nothing is hidden from a reader without it */
.cb-tablist { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--cb-line); margin-bottom: 24px; }
.cb-tablist [role="tab"] { appearance: none; border: 0; background: none; cursor: pointer; padding: 12px 18px; margin-bottom: -1px;
	font: 600 1em/1.2 var(--cb-display); color: var(--cb-muted); border-bottom: 3px solid transparent; }
.cb-tablist [role="tab"]:hover { color: var(--cb-heading); }
.cb-tablist [role="tab"].is-active { color: var(--cb-heading); border-bottom-color: var(--cb-accent); }
/* without the script the tab names can't be pressed, so they're hidden and each panel reads in turn */
.cb-tabs:not(.is-ready) > .cb-tablist { display: none; }
.cb-tabs:not(.is-ready) .cb-tabpanel + .cb-tabpanel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--cb-line); }
@media print { .cb-tabs .cb-tabpanel { display: block !important; } .cb-tabs > .cb-tablist { display: none; } .cb-panel-body { display: block; } }
@media (max-width: 560px) { .cb-tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .cb-tablist [role="tab"] { white-space: nowrap; } }
.cb-tabs.is-ready .cb-tabpanel:not(.is-active) { display: none; }
.cb-tabpanel { max-width: 72ch; }

/* cards */
.cb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cb-gap); }
.cb-cards.cb-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb-cards.cb-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-card { display: flex; flex-direction: column; background: var(--cb-bg); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); overflow: hidden; }
.cb-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.cb-card-body .cb-more { margin-top: auto; }

/* columns */
.cb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cb-cols.cb-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-cols.cb-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-cols.cb-boxed .cb-col { background: var(--cb-bg); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 26px; }

/* call to action */
.cb-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 40px 44px; border-radius: var(--cb-radius); background: var(--cb-tint); }
.cb-cta p { margin-top: 8px; }

/* quote and callout */
.cb-quote { margin: 0; max-width: 60ch; padding-left: 28px; border-left: 4px solid var(--cb-accent); }
.cb-quote blockquote { margin: 0; font: 500 1.35em/1.45 var(--cb-display); color: var(--cb-heading); }
.cb-quote figcaption { margin-top: 14px; color: var(--cb-muted); }
.cb-quote figcaption::before { content: "\2014\00a0"; }
.cb-callout { background: var(--cb-tint); border-radius: var(--cb-radius); padding: 22px 26px; max-width: 72ch; }
.cb-callout .cb-label { font: 700 .78em/1 var(--cb-display); letter-spacing: .1em; text-transform: uppercase; color: var(--cb-accent); margin-bottom: 10px; }

/* people */
.cb-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.cb-people li { display: flex; flex-direction: column; gap: 4px; }
.cb-people img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.cb-people p { color: var(--cb-muted); margin: 0; }
.cb-people a { color: var(--cb-accent); font-weight: 700; }
@media (pointer: coarse) {
	.cb-people a, .cb-card a, .cb-actions a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* timeline */
.cb-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--cb-line); }
.cb-timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 0 0 30px 26px; position: relative; }
.cb-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cb-accent); }
.cb-when { font: 700 1.25em/1.2 var(--cb-display); color: var(--cb-accent); }
.cb-timeline p { margin-top: 6px; }

@media (max-width: 860px) {
	.cb-media, .cb-cols, .cb-cols.cb-3, .cb-cols.cb-4 { grid-template-columns: 1fr; gap: 28px; }
	.cb-media.cb-flip .cb-media-photo { order: 0; }
	.cb-cards, .cb-cards.cb-2, .cb-cards.cb-4, .cb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cb-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cb-cta { padding: 30px 26px; }
}
@media (max-width: 560px) {
	.cb-cards, .cb-cards.cb-2, .cb-cards.cb-4, .cb-gallery { grid-template-columns: 1fr; }
	.cb-timeline li { grid-template-columns: 1fr; gap: 4px; }
	.cb-docs a { grid-template-columns: 48px minmax(0, 1fr); }
	.cb-doc-size { display: none; }
}
/* a picture made into a link: the link box can measure 0x0 around a positioned picture, so the focus ring goes on the picture */
.cb-pic-link:focus-visible { outline: none; }
.cb-pic-link:focus-visible > img { outline: 3px solid currentColor; outline-offset: 3px; }
/* Developer-mode responsive visibility. These durable classes are intentionally available on the public page too. */
@media (min-width: 1025px) { html:not(.ce-on) .cb-hide-desktop, html.ce-previewing .cb-hide-desktop { display: none !important; } }
@media (min-width: 761px) and (max-width: 1024px) { html:not(.ce-on) .cb-hide-tablet, html.ce-previewing .cb-hide-tablet { display: none !important; } }
@media (max-width: 760px) { html:not(.ce-on) .cb-hide-phone, html.ce-previewing .cb-hide-phone { display: none !important; } }
