/* 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;
}
/* A theme that never colors its links leaves the browser's default blue (#0000ee), off-brand everywhere (Cameron,
   2026-11-05): such links take the site's accent. Zero specificity, and here in the first stylesheet Kindly prints, so a
   theme's link rule and Kindly's own element rules (elements.css, also zero specificity but later) both win. */
:where(a:any-link) { color: var(--cb-accent, inherit); }

.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. */
/* Hide on (cb-hide-desktop, cb-hide-tablet, cb-hide-phone and the optional sizes): printed after this file from the
   site's screen sizes (includes/responsive.php, cantata_edit_screen_visibility_css), so they follow those widths. */
/* A picture made smaller in Kindly Edit (Simple's Size) keeps its shape. Only on a box marked so by the editor: its own
   fixed height gives way to the shape written on it (aspect-ratio), and a picture filling such a frame follows the frame.
   A height the page wrote itself stays in its markup untouched, so "As designed" brings it back exactly. */
.cb-pic-keep { height: auto !important; min-height: 0 !important; }
.cb-pic-keep > img { width: 100% !important; height: 100% !important; max-width: 100%; }

/* Native layout primitives. The outer container owns its background and spacing;
   its named inner container owns content width and the Flexbox or Grid arrangement. */
:where(.cb-container) { width: 100%; min-width: 0; }
/* a section started from scratch: a container as one of the page's sections, with room above and below */
:where(.cb-section) { padding-block: var(--cb-section-space, 56px); }
:where(.cb-container-content) { width: 100%; max-width: var(--cb-content-width, 1140px); margin-inline: auto; }
:where(.cb-flex) { display: flex; flex-direction: column; gap: var(--cb-gap); min-width: 0; }
:where(.cb-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-gap); min-width: 0; }
:where(.cb-grid > *) { min-width: 0; }
:where(.cb-table) { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block: 1.5em; }
:where(.cb-table caption) { text-align: start; font-weight: 600; margin-bottom: .75em; }
:where(.cb-table th, .cb-table td) { text-align: start; vertical-align: top; padding: .75em; overflow-wrap: anywhere; border-bottom: 1px solid var(--cb-line); }
:where(.cb-table th) { font-weight: 600; }
/* Table style (the Table style group in a table's settings): lines, stripes, header look, spacing, column widths and
   phones. Classes on the table only, at no specificity, so a theme or the element's own CSS still wins. */
:where(.cb-table.cb-table-grid) :where(th, td) { border: 1px solid var(--cb-line); }
:where(.cb-table.cb-table-plain) :where(th, td) { border-bottom: 0; }
:where(.cb-table.cb-table-striped > tbody > tr:nth-child(even)) { background: color-mix(in srgb, currentColor 4%, transparent); }
:where(.cb-table.cb-table-hover > tbody > tr:hover) { background: color-mix(in srgb, currentColor 7%, transparent); }
:where(.cb-table.cb-table-head-shaded) :where(thead th, tr:first-child > th[scope="col"]) { background: color-mix(in srgb, currentColor 8%, transparent); }
:where(.cb-table.cb-table-head-strong) :where(thead th, tr:first-child > th[scope="col"]) { background: var(--cb-heading, var(--cb-dark, #16181d)); color: var(--cb-bg, #fff); border-color: transparent; }
:where(.cb-table.cb-table-head-line) :where(thead tr:last-child > th, tr:first-child > th[scope="col"]) { border-bottom: 2px solid currentColor; }
:where(.cb-table.cb-table-compact) :where(th, td) { padding: .4em .6em; }
:where(.cb-table.cb-table-roomy) :where(th, td) { padding: 1.1em 1em; }
:where(.cb-table.cb-table-fit) { table-layout: auto; }
:where(.cb-table.cb-table-middle) :where(th, td) { vertical-align: middle; }
@media (max-width: 760px) {
	:where(.cb-table.cb-table-scroll) { display: block; overflow-x: auto; table-layout: auto; }
	:where(.cb-table.cb-table-scroll) :where(th, td) { min-width: 8em; overflow-wrap: normal; }
}
@media (max-width: 760px) { :where(.cb-grid) { grid-template-columns: 1fr; } }

/* Layout presets (blocks/271-282): columns side by side in a Flexbox row, and a three-across grid. They stack on
   phones; the container's own Layout settings (inline) always win over these zero-specificity defaults. */
:where(.cb-flex.cb-row) { flex-direction: row; }
:where(.cb-flex.cb-row > *) { flex: 1 1 0; min-width: 0; }
:where(.cb-flex.cb-row > .cb-grow-2) { flex-grow: 2; }
:where(.cb-grid.cb-grid-3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { :where(.cb-grid.cb-grid-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { :where(.cb-flex.cb-row) { flex-direction: column; } :where(.cb-grid.cb-grid-3) { grid-template-columns: minmax(0, 1fr); } }

/* Section layouts (each block's "Layouts:" header; Cameron, 2026-11-04). A layout is one class on the section, so the
   same words and pictures are only arranged another way: switching never adds, hides or loses anything. The same class
   on the element itself (its own settings in Developer mode, assets/element-settings.js) arranges it the same way. */
/* Photo and words: left (as built), right, on top, below, behind the words */
:is(.layout-right .cb-media, .cb-media.layout-right) .cb-media-photo { order: 2; }
:is(.layout-above .cb-media, .cb-media.layout-above), :is(.layout-below .cb-media, .cb-media.layout-below) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
:is(.layout-below .cb-media, .cb-media.layout-below) .cb-media-photo { order: 2; }
.layout-above .cb-media-photo img, .layout-below .cb-media-photo img { aspect-ratio: 21 / 9; }
.layout-above .cb-media-body, .layout-below .cb-media-body { max-width: 72ch; }
:is(.layout-behind .cb-media, .cb-media.layout-behind) { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 440px; border-radius: var(--cb-radius); overflow: hidden; isolation: isolate; }
.layout-behind .cb-media-photo { position: absolute; inset: 0; }
.layout-behind .cb-media-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.layout-behind .cb-media-body { align-self: end; z-index: 1; padding: 64px 44px 40px; color: #fff; background: linear-gradient(to top, rgb(0 0 0 / .8), rgb(0 0 0 / .55) 65%, rgb(0 0 0 / 0));
	--cb-heading: #fff; --cb-ink: #fff; --cb-muted: rgb(255 255 255 / .88); --cb-accent: #fff; }
.layout-behind .cb-media-body :is(h1, h2, h3, h4, h5, h6, p, li, a:not([class])) { color: #fff; }
/* Cards: a grid (as built), a list with the picture beside, the first one larger */
:is(.layout-list .cb-cards, .cb-cards.layout-list) { grid-template-columns: minmax(0, 1fr); }
.layout-list .cb-card { flex-direction: row; }
.layout-list .cb-card > img { flex: none; width: 34%; aspect-ratio: auto; min-height: 100%; }
:is(.layout-feature .cb-cards, .cb-cards.layout-feature) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-feature .cb-card:first-child { grid-column: span 2; grid-row: span 2; }
.layout-feature .cb-card:first-child > img { aspect-ratio: 16 / 9; }
/* People: photos in a grid (as built), a list with the photo beside, large photos */
:is(.layout-list .cb-people, .cb-people.layout-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
:is(.layout-list .cb-people, .cb-people.layout-list) li { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 20px; align-content: start; }
:is(.layout-list .cb-people, .cb-people.layout-list) li > * { grid-column: 2; }
:is(.layout-list .cb-people, .cb-people.layout-list) li > img { grid-column: 1; grid-row: 1 / span 4; width: 88px; height: 88px; margin: 0; }
:is(.layout-large .cb-people, .cb-people.layout-large) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.layout-large .cb-people, .cb-people.layout-large) img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--cb-radius); }
/* Gallery: a grid (as built), larger photos, the first one larger */
:is(.layout-large .cb-gallery, .cb-gallery.layout-large) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
:is(.layout-feature .cb-gallery, .cb-gallery.layout-feature) figure:first-child { grid-column: span 2; grid-row: span 2; }
/* Call to action: words left and button right (as built), centered, the button below the words */
:is(.layout-center .cb-cta, .cb-cta.layout-center) { flex-direction: column; justify-content: center; text-align: center; }
:is(.layout-center .cb-cta, .cb-cta.layout-center) .cb-actions { justify-content: center; }
:is(.layout-stack .cb-cta, .cb-cta.layout-stack) { flex-direction: column; align-items: flex-start; }
/* Text: reading width (as built), the full width, two columns */
:is(.layout-wide .cb-text, .cb-text.layout-wide), :is(.layout-columns .cb-text, .cb-text.layout-columns) { max-width: none; }
:is(.layout-columns .cb-text, .cb-text.layout-columns) { columns: 2; column-gap: 56px; }
:is(.layout-columns .cb-text, .cb-text.layout-columns) > * { break-inside: avoid; }
/* Timeline: down the page (as built), across the page: one line with the dates along it, wrapping into rows */
:is(.layout-across .cb-timeline, .cb-timeline.layout-across) { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); row-gap: 36px; border-left: 0; }
:is(.layout-across .cb-timeline, .cb-timeline.layout-across) li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 26px 28px 0 0; border-top: 2px solid var(--cb-line); }
:is(.layout-across .cb-timeline, .cb-timeline.layout-across) li::before { left: 0; top: -7px; }
/* Documents: a list (as built), cards side by side (square corners: each card has a visible edge) */
:is(.layout-cards .cb-docs, .cb-docs.layout-cards) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; border-top: 0; }
:is(.layout-cards .cb-docs, .cb-docs.layout-cards) li { border: 1px solid var(--cb-line); border-radius: 0; }
:is(.layout-cards .cb-docs, .cb-docs.layout-cards) a { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; height: 100%; padding: 22px; }
.layout-cards .cb-doc-type { justify-self: start; min-width: 56px; padding: 0 12px; }
.layout-cards .cb-doc-size { white-space: normal; }
/* Tabs: their names across the top (as built), down the left beside what each shows */
:is(.layout-side .cb-tabs, .cb-tabs.layout-side).is-ready { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
:is(.layout-side .cb-tabs, .cb-tabs.layout-side).is-ready > .cb-tablist { grid-column: 1; grid-row: 1; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; border-bottom: 0; border-left: 1px solid var(--cb-line); }
:is(.layout-side .cb-tabs, .cb-tabs.layout-side).is-ready > .cb-tabpanel { grid-column: 2; grid-row: 1; }
.layout-side .cb-tablist [role="tab"] { text-align: start; margin: 0 0 0 -1px; border-bottom: 0; border-left: 3px solid transparent; }
.layout-side .cb-tablist [role="tab"].is-active { border-left-color: var(--cb-accent); }
/* Accordion: lines between the panels (as built), each panel a box of its own (square corners with its edge) */
:is(.layout-boxed .cb-accordion, .cb-accordion.layout-boxed) { display: grid; gap: 12px; border-top: 0; }
.layout-boxed .cb-panel { border: 1px solid var(--cb-line); border-radius: 0; padding: 0 22px; }
/* Quote (with or without the person's photo): a line beside it (as built), centered under a short line */
/* (a quote inside Columns keeps its own look: Columns' "Centered" only centers the words) */
.layout-centered :is(.cb-quote, .cb-testimonial):not(.cb-cols *) { margin-inline: auto; max-width: 60ch; text-align: center; }
.layout-centered .cb-quote:not(.cb-cols *) { padding-left: 0; border-left: 0; }
.layout-centered :is(.cb-quote, .cb-testimonial):not(.cb-cols *)::before { content: ""; display: block; width: 48px; height: 4px; margin: 0 auto 22px; background: var(--cb-accent); }
.layout-centered .cb-testimonial:not(.cb-cols *) figcaption { justify-content: center; text-align: start; }
/* Columns: words to the left (as built), centered in each column */
:is(.layout-centered .cb-cols, .cb-cols.layout-centered) .cb-col { text-align: center; }
:is(.layout-centered .cb-cols, .cb-cols.layout-centered) .cb-col :is(.cb-quote, .cb-testimonial) { text-align: start; }
@media (max-width: 860px) {
	:is(.layout-right .cb-media, .cb-media.layout-right) .cb-media-photo { order: 0; }
	:is(.layout-behind .cb-media, .cb-media.layout-behind) { min-height: 360px; }
	.layout-behind .cb-media-body { padding: 56px 24px 28px; }
	:is(.layout-feature .cb-cards, .cb-cards.layout-feature) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-feature .cb-card:first-child, :is(.layout-feature .cb-gallery, .cb-gallery.layout-feature) figure:first-child { grid-row: auto; }
	:is(.layout-large .cb-people, .cb-people.layout-large) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	:is(.layout-columns .cb-text, .cb-text.layout-columns) { columns: 1; }
}
@media (max-width: 760px) {
	/* across the page and names on the left need the width: on a phone they read down the page again */
	:is(.layout-across .cb-timeline, .cb-timeline.layout-across) { display: block; border-left: 2px solid var(--cb-line); }
	:is(.layout-across .cb-timeline, .cb-timeline.layout-across) li { padding: 0 0 30px 26px; border-top: 0; }
	:is(.layout-across .cb-timeline, .cb-timeline.layout-across) li::before { left: -7px; top: 6px; }
	:is(.layout-side .cb-tabs, .cb-tabs.layout-side).is-ready { display: block; }
	:is(.layout-side .cb-tabs, .cb-tabs.layout-side).is-ready > .cb-tablist { flex-direction: row; margin-bottom: 24px; border-left: 0; border-bottom: 1px solid var(--cb-line); }
	.layout-side .cb-tablist [role="tab"] { margin: 0 0 -1px; border-left: 0; border-bottom: 3px solid transparent; }
	.layout-side .cb-tablist [role="tab"].is-active { border-bottom-color: var(--cb-accent); }
}
@media (max-width: 560px) {
	:is(.layout-feature .cb-cards, .cb-cards.layout-feature), :is(.layout-list .cb-people, .cb-people.layout-list), :is(.layout-large .cb-gallery, .cb-gallery.layout-large) { grid-template-columns: minmax(0, 1fr); }
	:is(.layout-cards .cb-docs, .cb-docs.layout-cards) a { grid-template-columns: minmax(0, 1fr); }
	.layout-cards .cb-doc-size { display: block; } /* a card has room for it, unlike a list's row */
	.layout-feature .cb-card:first-child, :is(.layout-feature .cb-gallery, .cb-gallery.layout-feature) figure:first-child { grid-column: auto; }
	.layout-list .cb-card { flex-direction: column; }
	.layout-list .cb-card > img { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}
