/*
 * Portable base stylesheet (pattern contract 1.4, 1.7, 2.4 to 2.6; portable set 5.9).
 *
 * Loaded on every front-end view and as an editor style. Colours only through the preset and custom
 * variables of contract section 1. theme.json and the style files print their rules as `:root :where(...)`
 * (specificity 0,1,0), so the ordinary selectors below correct them where 2.4 to 2.6 need it.
 */

/* 1.4 Type ---------------------------------------------------------------------------------------- */

/* A calc() line height is inherited as a length: repeat the body value on the text elements. */
:where(p, li, dd, dt, blockquote, figcaption, td, th) {
	line-height: calc(1em + 0.5rem);
}

/* Flow text in the content may break inside a long word or address, so a bare link never runs past its column or
   widens the page (ruling 87). Not in tables, whose words stay whole (the Table look below), nor in navigation. */
.entry-content :where(p, li, dd, dt, blockquote, figcaption, h1, h2, h3, h4, h5, h6):where(:not(table *, nav *)) {
	overflow-wrap: anywhere;
}

/* Hero title: 2px letter-spacing from 1024px, none below. */
.has-hero-title-font-size {
	line-height: 1.17;
	letter-spacing: 0;
}

@media (min-width: 1024px) {
	.has-hero-title-font-size {
		letter-spacing: 0.125rem;
	}
}

/* Links in headings (card titles): never underlined (1.4; pattern contract 1.0.11, asked for by Richard on 24 November
   2026: no link gains an underline under the pointer or with keyboard focus). Under the pointer and with keyboard focus
   their colour shows it, by the ground they stand on: ink on white, mist and panel, and in a box (card, title panel,
   notice-info) that stands in a dark section or on a Cover, since a box sets its own colours; nav.panelHover on
   deep-teal, its one ground; their own colour on slate, teal-strong, sun and a Cover's photo, where no second colour
   passes. An open Accordion row sets its own ground, panel (L18), so it counts as a box here (pattern contract 1.0.12);
   a link in a heading in the footer keeps the footer's own link colour (1.0.12: ink read 1.93 to 1 on its deep-teal);
   the footer is named by its two parts that hold editable content, the legal text and the newsletter band, the only
   chrome classes the portable set may name (test I5).
   Each state rule says `text-decoration: none` itself, so that a plugin's `a:hover` underline cannot win over the rest
   rule. Written with :focus-visible, not :focus: a link pressed with the mouse and left keeps :focus and its rest look.
   Links in running text keep the underline of theme.json at rest and lose it under the pointer. */
:is(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

:is(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)):where(:not(:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band, .is-style-notice-warning, .wp-block-cover, .caw-footer__legal, .caw-footer__newsletter) *)):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.is-style-section-deep-teal :is(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)):where(:not(:is(.is-style-card, .is-style-title-panel, .is-style-notice-info, .is-style-notice-warning, .wp-block-cover) *)):is(:hover, :focus-visible) {
	color: var(--wp--custom--nav--panel-hover);
	text-decoration: none;
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band, .wp-block-cover) :is(.is-style-card, .is-style-title-panel, .is-style-notice-info, .wp-block-accordion-item) :is(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* 1.7 Focus ring ---------------------------------------------------------------------------------- */

/* Rule 1: no :where(), so it beats plugin rules such as `.gform_wrapper input:focus { outline: none; }`.
   Rule 2: [tabindex="-1"] is left out. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
	outline: var(--wp--custom--focus--ring-width) solid var(--wp--custom--focus--ring-outer);
	outline-offset: var(--wp--custom--focus--ring-width);
	box-shadow: 0 0 0 var(--wp--custom--focus--ring-width) var(--wp--custom--focus--ring-inner);
}

/* Rule 3: white fields in dark places swap the two colours. */
.is-style-section-slate :is(input, select, textarea):focus-visible,
.is-style-section-deep-teal :is(input, select, textarea):focus-visible,
.is-style-section-teal-band :is(input, select, textarea):focus-visible,
.caw-footer__newsletter :is(input, select, textarea):focus-visible {
	outline-color: var(--wp--custom--focus--ring-inner);
	box-shadow: 0 0 0 var(--wp--custom--focus--ring-width) var(--wp--custom--focus--ring-outer);
}

/* Motion: with reduced motion, no transition or animation runs. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0s !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0s !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}

/* 2.4 Image, Media & Text and Separator styles -------------------------------------------------- */

/* A floated picture without a caption never widens the page, loaded or not (ruling 134). Core makes a floated image
   figure display: table; a picture that does not load (its host down or blocking) does not shrink inside a table, so
   the figure kept its inline width (1,048px on a 390px phone). As a block capped at 100% it fits its column. A figure
   with a caption keeps core's table, which wraps the caption to the picture's width. */
.entry-content figure.wp-block-image:is(.alignleft, .alignright):not(:has(figcaption)) {
	display: block;
	max-width: 100%;
}

/* Core's rounded: a circle for portraits. */
.wp-block-image.is-style-rounded img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Logo: contained, not cropped, centred in its cell. */
.wp-block-image.is-style-logo img {
	display: block;
	max-height: 5.75rem;
	margin-inline: auto;
	object-fit: contain;
	border-radius: 0;
}

.wp-block-media-text.is-style-logo .wp-block-media-text__media img {
	object-fit: contain;
	border-radius: 0;
}

/* Rule 3px, gold rule 2px, drawn by the bottom border. Core's separator stylesheet sets
   `border-top: 2px solid` with the same specificity as the style files, and wins. */
.wp-block-separator.is-style-rule {
	border-width: 0 0 3px;
	border-style: solid;
}

.wp-block-separator.is-style-gold-rule {
	border-width: 0 0 2px;
	border-style: solid;
}

/* Gold rule: 15.5rem wide, left-aligned with the column it stands in. Core's constrained layout centres
   every child with `margin: auto !important`; the left margin here puts the rule at the start of the
   reading column (or of the container, where that is narrower). */
.wp-block-separator.is-style-gold-rule {
	width: 15.5rem;
	max-width: 100%;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

/* 2.6 Colours by context ------------------------------------------------------------------------ */

/* Mist: teal never appears on mist; teal-strong takes its place. */
.is-style-section-mist .is-style-section-heading {
	border-bottom-color: var(--wp--preset--color--teal-strong);
}

.is-style-section-mist .wp-block-separator.is-style-rule {
	color: var(--wp--preset--color--teal-strong);
	background-color: var(--wp--preset--color--teal-strong);
	border-color: var(--wp--preset--color--teal-strong);
}

.is-style-section-mist .is-style-title-panel {
	border-left-color: var(--wp--preset--color--teal-strong);
}

/* The Quote's bar (theme.json: teal) is teal-strong on mist and white in dark sections (ruling 87). */
.is-style-section-mist .wp-block-quote {
	border-left-color: var(--wp--preset--color--teal-strong);
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .wp-block-quote {
	border-left-color: var(--wp--preset--color--white);
}

/* Dark sections: a section heading is white with no rule; the rule is white. */
:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .is-style-section-heading {
	color: var(--wp--preset--color--white);
	border-bottom-width: 0;
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .wp-block-separator.is-style-rule {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* 2.5 Buttons: hover and focus ------------------------------------------------------------------ */

/* Primary (no class, or core's fill): fill white, text and border teal-strong. */
:is(.wp-element-button, .wp-block-button__link):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--teal-strong);
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--teal-strong);
}

/* Outline: fill deep-teal, text white. */
.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--deep-teal);
	border-color: var(--wp--preset--color--deep-teal);
}

/* On dark: fill transparent, text and border white. */
.wp-block-button.is-style-on-dark > .wp-block-button__link:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background-color: transparent;
	border-color: var(--wp--preset--color--white);
}

/* On a photo the on-dark hover is filled: deep-teal, text white, border white. */
.wp-block-cover .wp-block-button.is-style-on-dark > .wp-block-button__link:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--deep-teal);
	border-color: var(--wp--preset--color--white);
}

/* Dark sections, outside a box. A button with no class has the on-dark look (set by the section style);
   its hover and focus are on-dark's. An outline button turns white, and fills white on hover and focus.
   Inside a card, notice or title panel the buttons are primary and outline again. */
:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band)
	:is(.wp-element-button, .wp-block-button__link):not(:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel) *):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background-color: transparent;
	border-color: var(--wp--preset--color--white);
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band)
	.wp-block-button.is-style-outline > .wp-block-button__link:not(:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel) *) {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band)
	.wp-block-button.is-style-outline > .wp-block-button__link:not(:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel) *):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--deep-teal);
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* 13 Layout rules ------------------------------------------------------------------------------- */

/* Keyed on the pattern classes. A section root is the element that carries `caw-pattern-<name>`. Global
   styles, block style variations and core's block stylesheets load after this file, so the selectors here
   carry enough classes to win. Breakpoints of 1.6: phone below 600px, tablet to 1023px, desktop from 1024px. */

/* L1 Same colour, one band: neighbouring roots touch, and a Group root after a Group root of the same
   section style has no top padding. */
.alignfull[class*="caw-pattern-"] + .alignfull[class*="caw-pattern-"] {
	margin-block-start: 0;
}

.wp-block-group.is-style-section-white[class*="caw-pattern-"] + .wp-block-group.is-style-section-white[class*="caw-pattern-"],
.wp-block-group.is-style-section-mist[class*="caw-pattern-"] + .wp-block-group.is-style-section-mist[class*="caw-pattern-"],
.wp-block-group.is-style-section-slate[class*="caw-pattern-"] + .wp-block-group.is-style-section-slate[class*="caw-pattern-"],
.wp-block-group.is-style-section-deep-teal[class*="caw-pattern-"] + .wp-block-group.is-style-section-deep-teal[class*="caw-pattern-"],
.wp-block-group.is-style-section-teal-band[class*="caw-pattern-"] + .wp-block-group.is-style-section-teal-band[class*="caw-pattern-"] {
	padding-top: 0;
}

/* L2 No bottom padding: the heading's bottom margin (2.4) is the gap to the first row. Core's layout sets the
   last child's bottom margin to 0, so it is set again; flow-root keeps the margin inside the band. */
.wp-block-group.caw-pattern-section-heading {
	display: flow-root;
	padding-bottom: 0;
}

.wp-block-group.caw-pattern-section-heading > .wp-block-heading.is-style-section-heading {
	margin-block-end: var(--wp--preset--spacing--60);
}

/* L3 Row-level patterns. */
.wp-block-group:is(.caw-pattern-speaker-row, .caw-pattern-partner-row, .caw-pattern-institute-row, .caw-pattern-feature-row) {
	padding-bottom: var(--wp--preset--spacing--70);
}

/* A section that holds a plugin's listing: a picture the plugin prints (a featured image at its full size, for
   example) is never wider than its column. */
.caw-pattern-shortcode-section img {
	max-width: 100%;
	height: auto;
}

/* A Query Loop grid of cards uses the card grid's gap (spacing 60, contract 1.5 and 5.6, as `.caw-cards`), not core's
   block gap, so a listing of posts or webinars lines up with the events cards beside it. The rule is not in this file:
   core prints its default grid gap (`:root :where(.is-layout-grid)`) and the gap an editor sets on one block
   (`.wp-container-core-post-template-is-layout-*`) after every stylesheet, both at specificity (0,1,0), so a rule that
   gives the card gap and still lets the editor's win must stand between the two in the cascade. A stylesheet cannot;
   `caw_americas_query_loop_gap()` (inc/portable.php, the portable set) adds it to core's global styles, after the default and before
   the block's own. */
/* L4 Grids. Core prints `repeat(n, minmax(0, 1fr))` at every width; a Group grid's column count is not in
   its classes, so the patterns name it: two-cards 2, three-cards 3, four-cards 4, feature-row as many as
   its features (2, 3 or 4, 8.5). Post Templates carry `columns-<n>`. */
@media (max-width: 599.98px) {
	:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards, .caw-pattern-feature-row) > .wp-block-group.is-layout-grid,
	.wp-block-post-template.is-layout-grid.wp-block-post-template-is-layout-grid[class*="columns-"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 600px) and (max-width: 767.98px) {
	:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards, .caw-pattern-feature-row) > .wp-block-group.is-layout-grid,
	.wp-block-post-template.is-layout-grid.wp-block-post-template-is-layout-grid[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.caw-pattern-four-cards > .wp-block-group.is-layout-grid,
	.caw-pattern-feature-row > .wp-block-group.is-layout-grid:has(> :nth-child(4)),
	.wp-block-post-template.is-layout-grid.wp-block-post-template-is-layout-grid.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Hand-made cards (Group style `card` in two-, three- and four-cards; ruling 87): the picture is as wide as the card's
   content and cropped to 16:9 (contract 1.6, as the automatic cards); the card is a column with its Buttons at the
   foot, the block gap kept above them. */
:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) .wp-block-group.is-style-card {
	display: flex;
	flex-direction: column;
}

:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) .wp-block-group.is-style-card > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) .wp-block-group.is-style-card > .wp-block-buttons:last-child:not(:first-child) {
	margin-block-start: auto;
	padding-block-start: var(--wp--style--block-gap);
}

/* Two card sections of one style in a row read as one grid: when the second starts with its grid, the first keeps
   only the grid's gap below its cards (L1 already takes the second's top padding). */
:is(
	.wp-block-group.is-style-section-white:has(+ .wp-block-group.is-style-section-white:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child),
	.wp-block-group.is-style-section-mist:has(+ .wp-block-group.is-style-section-mist:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child),
	.wp-block-group.is-style-section-slate:has(+ .wp-block-group.is-style-section-slate:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child),
	.wp-block-group.is-style-section-deep-teal:has(+ .wp-block-group.is-style-section-deep-teal:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child),
	.wp-block-group.is-style-section-teal-band:has(+ .wp-block-group.is-style-section-teal-band:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child)
):is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) {
	padding-bottom: var(--wp--style--block-gap);
}

/* L22 Link panels under a hero (contract 1.0.10; the three panels of the old Home, asked for by Richard on 24 November
   2026). A two-, three- or four-cards section that directly follows a hero Cover, starts with its grid (no section
   heading) and holds no Image and no Button is a row of link panels; every other card section keeps the card of 2.3.
   The section is recognised by where it stands, so no stored content carries a class for it. Its selector carries
   seven classes and a card's eleven, so it wins over the card style (theme.json and styles/card.json print
   `:root :where(...)`), the section styles, L1, the hand-made cards above and the heading link rules of 1.4, here
   only. The hero's part of the rule (its height and the room under its title panel) stands beside L10 below.
   This file is also the editor's style. In the editor's canvas the stretched link would lie over the title's row, the
   arrow would take the ::after the editor draws its selection frame with, and the grid's pointer rule would let clicks
   fall through, so those rules skip `.block-editor-block-list__block`, a class front-end markup never carries; the
   editor shows the fills and the title. */
/* The panels: fills by place in the grid (gold with ink, teal-strong and deep-teal with white, then again), no border,
   padding preset 60. A card's title link is stretched over the card (as `.caw-card__title a::after` in caw-site.css),
   lifted above the arrow, so a click anywhere on the panel follows it and the card stays one tab stop. */
.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card {
	position: relative;
	padding: var(--wp--preset--spacing--60);
	border: 0;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:nth-child(3n + 1) {
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--custom--panel--gold);
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:nth-child(3n + 2) {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--teal-strong);
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:nth-child(3n + 3) {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--deep-teal);
}

/* The title: a card title's size, upper case, weight 400, the card's text colour; its link is never underlined and
   keeps the card's text colour under the pointer and with keyboard focus (pattern contract 1.0.11): this rule is not
   tied to a state, so it holds in every state, and the arrow's move below is the sign. */
.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card > :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
	font-weight: 400;
	text-transform: uppercase;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card > :is(h1, h2, h3, h4, h5, h6) a {
	color: inherit;
	text-decoration: none;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block) > :is(h1, h2, h3, h4, h5, h6) a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* A link inside a panel's text (L22, amended 24 November 2026): it takes the card's text colour and keeps the underline
   of a link in text, and it lies above the stretched link (z-index one more), so a click on it follows it and it is a
   tab stop of its own. The lift skips the editor's class as the stretched link does; the colour is the panel's look and
   shows in the editor as the fill does. A button-like link there (the Download button of a File block, an
   a.wp-element-button outside .wp-block-button) keeps the button's own colours (pattern contract 1.0.12), so the colour
   rule leaves it out; the lift reaches it too. */
.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card > :not(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)) {
	color: inherit;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block) > :not(h1, h2, h3, h4, h5, h6) a {
	position: relative;
	z-index: 2;
}

/* The arrow: a card whose title holds a link ends with a line arrow, 4.6875rem by 0.875rem, at its lower right. It is
   the card's ::after, the last item of the column card (the hand-made cards above), at the right and pushed to the
   foot, one block gap at least below the text. The stylesheet draws it: the card's text colour (currentColor) seen
   through a mask of an SVG line, which names no colour of its own. Under the pointer anywhere on the card and with
   keyboard focus on the title's link (not on a link inside the card's text, pattern contract 1.0.12) it moves 0.375rem
   to the right over 0.15s; with reduced motion it stays (below, and the motion rule of 1.7). */
.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block):has(> :is(h1, h2, h3, h4, h5, h6) a) > :last-child {
	margin-block-end: var(--wp--style--block-gap);
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block):has(> :is(h1, h2, h3, h4, h5, h6) a)::after {
	content: "";
	flex: 0 0 auto;
	align-self: flex-end;
	width: 4.6875rem;
	height: 0.875rem;
	margin-block-start: auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 14'%3E%3Cpath d='M0 7h73.5M67 1l6.5 6-6.5 6' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 14'%3E%3Cpath d='M0 7h73.5M67 1l6.5 6-6.5 6' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transition: transform 0.15s;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block):has(> :is(h1, h2, h3, h4, h5, h6) a):is(:hover, :has(> :is(h1, h2, h3, h4, h5, h6) a:focus-visible))::after {
	transform: translateX(0.375rem);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block):has(> :is(h1, h2, h3, h4, h5, h6) a):is(:hover, :has(> :is(h1, h2, h3, h4, h5, h6) a:focus-visible))::after {
		transform: none;
	}
}

/* With forced colours (L22, amended 24 November 2026) the fills give way to the system's canvas, so a panel has a 1px
   solid border in the system's text colour and its arrow is drawn in that colour (forced-color-adjust: none keeps the
   system colour the arrow names), and the three panels stay three boxes with an arrow each. */
@media (forced-colors: active) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card {
		border: 1px solid CanvasText;
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card:not(.block-editor-block-list__block):has(> :is(h1, h2, h3, h4, h5, h6) a)::after {
		forced-color-adjust: none;
		background-color: CanvasText;
	}
}

/* From 1024px the grid overlaps the hero's foot by 5rem. The section keeps its own box (and background) below the hero:
   it loses its top padding and becomes a block formatting context, so the grid's negative margin cannot pull the
   section up with it; the grid is lifted over the hero's picture. The grid lets the pointer through, so between and
   beside the panels the hero is what lies under it; the panels take it back. Only the section's first grid is lifted
   (pattern contract 1.0.12): a further grid follows it in the flow and would otherwise cover its lower 5rem and its
   arrows. Below 1024px nothing overlaps: the section follows the hero with the grid's gap as its top padding. */
@media (min-width: 1024px) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) {
		display: flow-root;
		padding-top: 0;
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid:first-child {
		position: relative;
		z-index: 1;
		margin-block-start: -5rem;
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid:first-child:not(.block-editor-block-list__block) {
		pointer-events: none;
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid:first-child:not(.block-editor-block-list__block) > * {
		pointer-events: auto;
	}
}

/* On a window lower than 50rem (L22, amended 24 November 2026: on the page areas laptops give, 1536 by 730 among them,
   the titles stood below the fold) the row is drawn compact (pattern contract 1.0.12): a link panel's top padding is
   preset 50, its other sides stay preset 60. The hero's part (one block gap above and under its title panel, which
   is the gutter between two panels, and preset 40 inside the title panel) stands beside L10 below. Like the overlap,
   this is the row's layout at that window size, so it applies wherever this stylesheet does, the editor's canvas at
   that size included. */
@media (min-width: 1024px) and (max-height: 49.98rem) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid > .wp-block-group.is-style-card {
		padding-top: var(--wp--preset--spacing--50);
	}
}

/* Below 1024px the panels stand in one column, each as wide as the grid (L22, amended 24 November 2026: three panels
   side by side left a text column of 164 to 242px between 768 and 1023px); every other card section keeps L4's
   columns. Like the section's top padding beside it, this is the row's layout at that width, editor included. */
@media (max-width: 1023.98px) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) {
		padding-top: var(--wp--style--block-gap);
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) + .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards):has(> .is-layout-grid:first-child):not(:has(.wp-block-image, .wp-block-button)) > .is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* text-columns' price card (ruling 87): its first Paragraph, the price, is a display figure; the currency and the period
   (`sup` and `sub` in converted cards) are small. */
.caw-pattern-text-columns .wp-block-column > .wp-block-group.is-style-card > p:first-of-type {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: calc(1.5 * var(--wp--preset--font-size--xx-large));
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--heading-grey);
}

.caw-pattern-text-columns .wp-block-column > .wp-block-group.is-style-card > p:first-of-type > :is(sup, sub) {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

/* L6 Media widths, set here so no inline style is stored. text-media keeps core's half. */
:is(.caw-pattern-institute-row, .caw-pattern-partner-row) .wp-block-media-text {
	grid-template-columns: calc(100% / 3) minmax(0, 1fr);
}

:is(.caw-pattern-institute-row, .caw-pattern-partner-row) .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: minmax(0, 1fr) calc(100% / 3);
}

/* A logo sits in one box, 15rem by 7.5rem (or the cell's width, where that is narrower), contained (ruling 87: a height
   cap made square logos unreadable). */
:is(.caw-pattern-institute-row, .caw-pattern-partner-row) .wp-block-media-text > .wp-block-media-text__media img {
	display: block;
	width: min(100%, 15rem);
	max-width: none;
	height: 7.5rem;
	max-height: none;
	margin-inline: auto;
	object-fit: contain;
	border-radius: 0;
}

/* In a partner row the logo stands at the top, beside the name, not in the middle of a tall text (ruling 87). Core's
   `is-vertically-aligned-center` loads after this file, hence the doubled class. */
.caw-pattern-partner-row .wp-block-media-text.wp-block-media-text > :is(.wp-block-media-text__media, .wp-block-media-text__content) {
	align-self: start;
}

.caw-pattern-partner-row .wp-block-media-text > .wp-block-media-text__content > :first-child {
	margin-block-start: 0;
}

:is(.caw-pattern-speaker-row, .wp-block-accordion-panel) .wp-block-media-text {
	grid-template-columns: 25% minmax(0, 1fr);
}

:is(.caw-pattern-speaker-row, .wp-block-accordion-panel) .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: minmax(0, 1fr) 25%;
}

:is(.caw-pattern-speaker-row, .wp-block-accordion-panel) .wp-block-media-text:not(.is-style-logo) > .wp-block-media-text__media img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 9999px;
}

/* Stacked on a phone (core stacks up to 600px inclusive), a speaker's photo or logo is at most 12.5rem wide, at the
   gutter (ruling 87). */
@media (max-width: 600px) {
	:is(.caw-pattern-speaker-row, .wp-block-accordion-panel) .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media img {
		max-width: 12.5rem;
	}
}

/* In a speaker row, the bold name that opens the first paragraph looks like the level-3 heading, also when line breaks
   follow it in the same paragraph. The role after it keeps the look of an ordinary paragraph. In an accordion panel
   the name is the accordion's title, so a bold first paragraph there stays bold text (ruling 87). */
.caw-pattern-speaker-row .wp-block-media-text__content > p:first-child > strong:first-child:not(:has(~ :not(br))) {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 900;
	line-height: 1.19;
	letter-spacing: 0.03125rem;
	color: var(--wp--preset--color--heading-grey);
}

.caw-pattern-speaker-row:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .wp-block-media-text__content > p:first-child > strong:first-child:not(:has(~ :not(br))) {
	color: var(--wp--preset--color--white);
}

/* A role written as a bold paragraph after a heading name looks like a role written as a level-4 heading (ruling 87). */
.caw-pattern-speaker-row .wp-block-media-text__content > :is(h2, h3, h4):first-child + p > strong:only-child {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--heading-grey);
}

.caw-pattern-speaker-row:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .wp-block-media-text__content > :is(h2, h3, h4):first-child + p > strong:only-child {
	color: var(--wp--preset--color--white);
}

/* Media & Text in a pattern (ruling 87): core's 8% padding on both sides of the text half is replaced. The text starts
   at the section's edge, with a gap of spacing 60 only towards the picture; the halves and thirds above stay. */
.wp-block-group[class*="caw-pattern-"] .wp-block-media-text > .wp-block-media-text__content {
	padding-inline: var(--wp--preset--spacing--60) 0;
}

.wp-block-group[class*="caw-pattern-"] .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
	padding-inline: 0 var(--wp--preset--spacing--60);
}

/* Stacked (core stacks up to 600px inclusive): the text at the gutter, spacing 50 under the picture. A block with an
   empty figure is left to L5. */
@media (max-width: 600px) {
	.wp-block-group[class*="caw-pattern-"] .wp-block-media-text.is-stacked-on-mobile:not(:has(> .wp-block-media-text__media:empty)) > .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--50) 0 0;
	}

	.wp-block-group[class*="caw-pattern-"] .wp-block-media-text.is-stacked-on-mobile:not(:has(> .wp-block-media-text__media:empty)) > .wp-block-media-text__content > :first-child {
		margin-block-start: 0;
	}
}

/* feature-row: an icon is at most 100px wide, as today (the source's `img_size="100x100"`); it never fills its cell. */
.caw-pattern-feature-row .wp-block-image img {
	max-width: 6.25rem;
	height: auto;
}

/* L5 A Media & Text block whose media figure is empty gives the whole width to its text. After L6, which it
   overrides. The editor shows a placeholder in the figure, so the rule does not apply there. */
.wp-block-media-text.wp-block-media-text:has(> .wp-block-media-text__media:empty) {
	grid-template-columns: minmax(0, 1fr);
}

.wp-block-media-text > .wp-block-media-text__media:empty {
	display: none;
}

.wp-block-media-text.wp-block-media-text:has(> .wp-block-media-text__media:empty) > .wp-block-media-text__content {
	grid-column: 1;
	padding-inline: 0;
}

/* L7 An empty Paragraph, Button or Buttons block takes no space. Never in the editor, where it is being
   written. */
p.wp-block-paragraph:empty:not([contenteditable], .block-editor-block-list__block),
.wp-block-button:has(> .wp-block-button__link:empty):not(.block-editor-block-list__block),
.wp-block-buttons:not(:has(.wp-block-button)):not(.block-editor-block-list__block) {
	display: none;
}

/* L8 Every button in cta-photo has the on-dark look; on hover and focus it fills deep-teal (L8b, as any
   on-dark button in a Cover). L8c the heading is white, with or without `is-light`. */
.wp-block-cover.caw-pattern-cta-photo .wp-block-button > .wp-block-button__link.wp-element-button {
	color: var(--wp--preset--color--deep-teal);
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

.wp-block-cover.caw-pattern-cta-photo .wp-block-button > .wp-block-button__link.wp-element-button:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--deep-teal);
	border-color: var(--wp--preset--color--white);
}

.wp-block-cover.caw-pattern-cta-photo :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

/* L9 */
:is(.caw-pattern-cta-band, .caw-pattern-cta-photo, .caw-pattern-join-cta) {
	text-align: center;
}

/* L10 Hero: the inner container is the wide size and centred, the title panel at most 690px at the left.
   The height is the theme's: the reference's 82vh. */
.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) {
	min-height: max(26.875rem, 82vh);
	padding-inline: var(--wp--custom--gutter);
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) > .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) .wp-block-group.is-style-title-panel {
	max-width: 690px;
	margin-inline: 0 auto;
}

/* L10b On a phone the panel is the column's width with padding 50, at the foot of a Cover at least
   max(28rem, 60svh) tall, so the photo shows above it (ruling 87: 18rem left a sliver of photo above a long title). */
@media (max-width: 599.98px) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) {
		min-height: max(28rem, 60svh);
		align-items: flex-end;
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature) .wp-block-group.is-style-title-panel {
		max-width: none;
		padding: var(--wp--preset--spacing--50);
	}
}

/* L22 The hero above a row of link panels (the panels' rules stand with the hand-made cards above; the conditions are
   the same, written from the hero's side: a card section right after it that starts with its grid and holds no Image
   and no Button). From 1024px the hero is max(26.875rem, 100svh - H - 1rem) high, H being the header at rest at that
   width (3.5: the utility bar and the main bar, 8.25rem from 1024 to 1279px, header.height from 1280px), less the
   admin bar where there is one (0 for a visitor); so the panels, which overlap its foot by 5rem, stand 6rem above the
   window's foot and their titles show whenever the hero's content fits. Under its title panel it keeps 5rem and one
   block gap free, so the panels never cover the hero's text. Below 1024px L10 and L10b stand. */
@media (min-width: 1024px) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature):has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child):not(:has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) :is(.wp-block-image, .wp-block-button))) {
		min-height: max(26.875rem, calc(100svh - var(--wp--custom--header--utility-height) - 8.25rem - var(--wp-admin--admin-bar--height, 0px) - 1rem));
		padding-bottom: calc(5rem + var(--wp--style--block-gap));
	}
}

@media (min-width: 1280px) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature):has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child):not(:has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) :is(.wp-block-image, .wp-block-button))) {
		min-height: max(26.875rem, calc(100svh - var(--wp--custom--header--utility-height) - var(--wp--custom--header--height) - var(--wp-admin--admin-bar--height, 0px) - 1rem));
	}
}

/* L22 on a window lower than 50rem (amended 24 November 2026; compact since pattern contract 1.0.12): the hero above a
   row of link panels keeps one block gap above its title panel and, as on a taller window, 5rem and one block gap under
   it (the rule above; the panels take back 5rem), so the white title panel stands one block gap clear of the header and
   of the panels: the width of the gutter between two panels, where 8px had read as boxes colliding. To pay for it the
   title panel has preset 40 above and below its content and between its blocks (WordPress gives a flow layout's blocks
   one block gap with a rule of no weight, `:root :where(.is-layout-flow) > *`, and the first block none), its sides
   staying preset 60; with the panels' top padding of preset 50 (above) the titles show on the page areas laptops give.
   At 50rem and higher, below 1024px and for any other hero, nothing of this applies. Like the hero's height above, it
   is the layout at that window size, editor's canvas included. */
@media (min-width: 1024px) and (max-height: 49.98rem) {
	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature):has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child):not(:has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) :is(.wp-block-image, .wp-block-button))) {
		padding-top: var(--wp--style--block-gap);
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature):has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child):not(:has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) :is(.wp-block-image, .wp-block-button))) > .wp-block-cover__inner-container > .wp-block-group.is-style-title-panel {
		padding-block: var(--wp--preset--spacing--40);
	}

	.wp-block-cover:is(.caw-pattern-hero, .caw-pattern-hero-lead, .caw-pattern-hero-feature):has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) > .is-layout-grid:first-child):not(:has(+ .wp-block-group:is(.caw-pattern-two-cards, .caw-pattern-three-cards, .caw-pattern-four-cards) :is(.wp-block-image, .wp-block-button))) > .wp-block-cover__inner-container > .wp-block-group.is-style-title-panel > * + * {
		margin-block-start: var(--wp--preset--spacing--40);
	}
}

/* L11 logo-grid: two logos a row below 600px (core), three to 1023px, its columns from 1024px (core).
   Logos are contained. */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.caw-pattern-logo-grid .wp-block-gallery.has-nested-images[class*="columns-"] figure.wp-block-image:not(#individual-image) {
		width: calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px) * 0.66667);
	}
}

.caw-pattern-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image img {
	object-fit: contain;
}

/* A logo keeps its own size: core lets a figure grow to fill the row, which stretched a lone logo to the wide width
   (Membership). A figure stays one column wide and its logo never grows past the file. */
.caw-pattern-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}

/* L12 Query Loop cards have the card look of 5.6: no frame, the image flush, the meta line small, the body
   0.75rem below the image; the title link covers the card. */
:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post {
	position: relative;
}

:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post > .wp-block-group {
	padding: 0;
	border: 0;
	background: none;
}

:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post .wp-block-post-featured-image {
	margin: 0;
}

:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post .wp-block-post-featured-image + * {
	margin-block-start: 0.75rem;
}

:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post .wp-block-post-date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--meta-grey);
}

:is(.is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band) .wp-block-post .wp-block-post-date {
	color: var(--wp--preset--color--white);
}

:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* A card in a grid without a featured image keeps a tinted 16:9 block in the picture's place, so a row of cards lines
   up (ruling 87); mist, or white on a mist section. */
:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-group:not(:has(> .wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	margin-block-end: 0.75rem;
	background-color: var(--wp--preset--color--mist);
}

.is-style-section-mist :is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-group:not(:has(> .wp-block-post-featured-image))::before,
.is-style-section-mist:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template.is-layout-grid .wp-block-post > .wp-block-group:not(:has(> .wp-block-post-featured-image))::before {
	background-color: var(--wp--preset--color--white);
}

/* The featured card (a Post Template that is not a grid, in any of the three listings: a listing of one post looks
   like the featured post, ruling 87): image and text side by side from 600px, the text spaced by the block gap as in
   the grid's cards. */
@media (min-width: 600px) {
	:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template:not(.is-layout-grid) .wp-block-post > .wp-block-group:has(> .wp-block-post-featured-image) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto 1fr;
		gap: var(--wp--style--block-gap) var(--wp--preset--spacing--60);
		align-items: start;
	}

	:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template:not(.is-layout-grid) .wp-block-post > .wp-block-group > .wp-block-post-featured-image {
		grid-column: 1;
		grid-row: 1 / -1;
	}

	:is(.caw-pattern-latest-posts, .caw-pattern-latest-posts-featured, .caw-pattern-latest-webinars) .wp-block-post-template:not(.is-layout-grid) .wp-block-post > .wp-block-group:has(> .wp-block-post-featured-image) > :not(.wp-block-post-featured-image) {
		grid-column: 2;
		margin-block-start: 0;
	}
}

/* L13 chapters-map: the pills at every width, the map (the Group around the shortcode) from 600px. */
@media (max-width: 599.98px) {
	.caw-pattern-chapters-map > .wp-block-group {
		display: none;
	}
}

/* L14a Embeds: a frame is never wider than its column. WordPress prints the embed of another post of this site as
   `iframe.wp-embedded-content` with `width="500"`, and a core embed block's frame keeps the width its provider gave it;
   on a 390px phone either one stood wider than the screen. Only the width is capped, so a video player keeps the 16:9
   box that core's responsive embeds (the wrapper's `wp-embed-aspect-16-9`) and event-html.css section 6 give it. */
:is(iframe.wp-embedded-content, .wp-block-embed iframe) {
	box-sizing: border-box;
	max-width: 100%;
}

/* L14a since 1.0.6 (ruling 158 (p)): WordPress prints the embed of a post of this site hidden and absolutely
   positioned (`style="position: absolute; visibility: hidden;"`) until the embedded page has answered, and Safari keeps
   it so until the reader scrolls near it; its cap of 100% then read the page's width, and the post stood 16px wider
   than a 390px screen. The element that holds such a frame, whatever it is (a core embed block's wrapper, a paragraph
   or a div of converted content, the content wrapper itself), is its containing block, and a size container, so that
   the cap is the column: `100cqi` is the holder's content box, where 100% of an absolute box would be its padding box
   (the content wrapper has the root padding at its sides). At no specificity (`:where()`), so core's own position for
   the wrapper of an embed with an aspect ratio stands. Only frames of this site match: a video player carries no
   `wp-embedded-content` and keeps its box. Only the width is capped. */
:where(:has(> iframe.wp-embedded-content)) {
	position: relative;
	container-type: inline-size;
}

iframe.wp-embedded-content {
	max-width: min(100%, 100cqi);
}

.entry-content > iframe.wp-embedded-content,
:where(.entry-content) .is-layout-constrained > iframe.wp-embedded-content {
	max-width: min(100%, 100cqi, var(--wp--style--global--content-size, 100%));
}

/* L14a general: a frame in free-form content that has no rule of its own (an editor's Custom HTML block prints it as a
   direct child of the content wrapper, often with width="560" or "640" on the tag) is never wider than its column. Only
   the width is capped, the height is untouched.
   1. Every frame inside the wrapper: `max-width: 100%` at no specificity at all (`:where()`), so every rule of the
      theme or a plugin that sets a width or a cap on a frame (the 16:9 player box, html-embed, the embed block, the
      map, a description) wins over it.
   2. A direct child of the wrapper or of a constrained group inside it has core's own cap from the layout
      (`max-width: var(--wp--style--global--content-size)`, 730px, one class of specificity), which rule 1 loses to: a
      700px frame stayed 700px in a 358px column. One class and one element beat it, and the value keeps that cap
      (`min()` of it and the column), so the html-embed pattern's frame, which relies on it in a wide group, keeps its
      730px. The 16:9 player rule (two classes and an element) still wins over this one. */
:where(.entry-content) :where(iframe) {
	box-sizing: border-box;
	max-width: 100%;
}

.entry-content > iframe,
:where(.entry-content) .is-layout-constrained > iframe {
	max-width: min(100%, var(--wp--style--global--content-size, 100%));
}

/* L14 html-embed: an iframe is as wide as its column, and 16:9 unless it carries its own height. */
.caw-pattern-html-embed iframe {
	display: block;
	box-sizing: border-box;
	width: 100%;
}

.caw-pattern-html-embed iframe:not([height]) {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* A Slido frame stores `height="100%"` and an inline absolute position, so it fills its `.slido-embed` wrapper. The
   wrapper has today's proportions (the pages' own CSS): 49% as tall as wide, 127% below 1024px. */
.caw-pattern-html-embed .slido-embed {
	position: relative;
	aspect-ratio: 100 / 127;
}

@media (min-width: 1024px) {
	.caw-pattern-html-embed .slido-embed {
		aspect-ratio: 100 / 49;
	}
}

/* L15 */
:is(.caw-pattern-downloads, .caw-pattern-contact-block) .wp-block-list {
	padding-inline-start: 0;
	list-style: none;
}

/* Table (ruling 87): light rules, a header row, columns that follow their content and no break inside a word. On a
   phone a table of four columns or more is at least 36rem wide and scrolls inside its own figure, never the page; a
   narrower table fits the column with its words whole, and scrolls only if a word cannot fit. Core's table stylesheet
   loads after this file, hence the doubled class.
   A bare table (contract 1.0.9, 2.4 and S12) is a `<table>` with no class attribute that is a direct child of
   `.entry-content`: a table written in the classic editor, as on the Join page. It takes the same look from the same
   rules. It has no figure, because classic content is not a block and no filter wraps it, so below 600px one of four
   columns or more becomes a block that scrolls inside itself
   (the way of a table in event HTML (contract 4.3, element 11)), never the page. A table a plugin prints carries a
   class or sits deeper, and event HTML has no `.entry-content`: neither is reached. */
.wp-block-table {
	overflow-x: auto;
}

.wp-block-table.wp-block-table table,
.entry-content > table:not([class]) {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
}

.wp-block-table.wp-block-table table :is(td, th),
.entry-content > table:not([class]) :is(td, th) {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--mist);
	text-align: left;
	vertical-align: top;
	word-break: normal;
	overflow-wrap: normal;
}

.wp-block-table.wp-block-table :is(thead, tfoot),
.entry-content > table:not([class]) :is(thead, tfoot) {
	border: 0;
}

.wp-block-table.wp-block-table thead th,
.entry-content > table:not([class]) thead th {
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--panel);
	border-bottom: 2px solid var(--wp--preset--color--teal-strong);
}

/* A paragraph in a bare table's cell has preset 40 above it and nothing below, so the cell's bottom is its padding
   alone. wpautop turns a cell written with blank lines into `text</p> <p>text`, which a browser builds as a text node,
   an EMPTY paragraph, then the real ones: the empty one keeps its top margin, which collapses through it into the next
   paragraph's, so the gap after the opening text is the same preset 40. Only a real first paragraph starts flush. */
.entry-content > table:not([class]) :is(td, th) > p {
	margin: var(--wp--preset--spacing--40) 0 0;
}

.entry-content > table:not([class]) :is(td, th) > p:first-child:not(:empty) {
	margin-top: 0;
}

@media (max-width: 599.98px) {
	.wp-block-table.wp-block-table table:has(tr > :nth-child(4)) {
		min-width: 36rem;
	}

	.entry-content > table:not([class]):has(tr > :nth-child(4)) {
		display: block;
		overflow-x: auto;
	}
}

/* L17 Columns stack below 600px and sit side by side from 600px; core stacks below 782px. Between the two,
   a column keeps the width of 8.11 it stores (core's !important would make it 100%), others share equally. */
@media (min-width: 600px) and (max-width: 781.98px) {
	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: nowrap !important;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis:25%"] {
		flex-basis: 25% !important;
		flex-grow: 0;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis:33.33%"] {
		flex-basis: 33.33% !important;
		flex-grow: 0;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis:50%"] {
		flex-basis: 50% !important;
		flex-grow: 0;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis:66.66%"] {
		flex-basis: 66.66% !important;
		flex-grow: 0;
	}

	.wp-block-columns.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis:75%"] {
		flex-basis: 75% !important;
		flex-grow: 0;
	}
}

/* L18 Accordion: rows on panel, 0.3125rem apart; the icon in a 3.75rem cell at the left with a mist rule and
   a + or − glyph; the title Roboto 500, ink closed and deep-teal open. The row sets its own text and link
   colours, so it reads the same in every section style. */
.wp-block-accordion > .wp-block-accordion-item {
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--panel);
}

.wp-block-accordion > .wp-block-accordion-item + .wp-block-accordion-item {
	margin-block-start: 0.3125rem;
}

.wp-block-accordion-item a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--deep-teal);
}

.wp-block-accordion-item > .wp-block-accordion-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: calc(1em + 0.5rem);
	letter-spacing: 0;
	color: var(--wp--preset--color--ink);
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading {
	color: var(--wp--preset--color--deep-teal);
}

.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle {
	align-items: stretch;
	padding: 0;
}

.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-title {
	padding: 1.25rem 2.5rem 1.25rem 1.25rem;
}

/* WordPress underlines the title under the pointer (accordion-heading/style.min.css, 0,3,0, which wins only by order);
   no link is underlined under the pointer (1.4, pattern contract 1.0.11): the title takes deep-teal, an open title's
   colour, instead. (0,3,1) wins wherever WordPress prints its rule. */
button.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	color: var(--wp--preset--color--deep-teal);
	text-decoration: none;
}

.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	box-sizing: border-box;
	order: -1;
	flex: 0 0 3.75rem;
	width: 3.75rem;
	height: auto;
	font-size: 0;
	border-right: 1px solid var(--wp--preset--color--mist);
}

.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::before {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
}

/* Core turns the open icon 45 degrees (a cross); here the glyph changes instead. */
.wp-block-accordion .wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transform: none;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon::before {
	content: "\2212";
}

.wp-block-accordion-item > .wp-block-accordion-panel {
	margin-block-start: 0;
	padding: 0 2.5rem 1.25rem 5rem;
}

/* Below 600px the panel's content uses the panel's width (ruling 87). */
@media (max-width: 599.98px) {
	.wp-block-accordion-item > .wp-block-accordion-panel {
		padding-inline: 1.25rem;
	}
}

/* L19 A Group root without a section style, or with a box style, looks like section-white. On the front end
   rule 9 of 8.2 gives it the class; this covers the editor canvas. */
.wp-block-group[class*="caw-pattern-"]:not(.is-style-section-white, .is-style-section-mist, .is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band),
.wp-block-group[class*="caw-pattern-"]:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel) {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--80);
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--white);
	border-width: 0;
}

:is(
	.wp-block-group[class*="caw-pattern-"]:not(.is-style-section-white, .is-style-section-mist, .is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band),
	.wp-block-group[class*="caw-pattern-"]:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel)
) :is(h1, h2, h3, h4, h5, h6):not(.is-style-section-heading) {
	color: var(--wp--preset--color--heading-grey);
}

:is(
	.wp-block-group[class*="caw-pattern-"]:not(.is-style-section-white, .is-style-section-mist, .is-style-section-slate, .is-style-section-deep-teal, .is-style-section-teal-band),
	.wp-block-group[class*="caw-pattern-"]:is(.is-style-card, .is-style-notice-info, .is-style-notice-warning, .is-style-title-panel)
) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--deep-teal);
}

/* L20 Beside a wide block the text column starts at the wide edge (ruling 47), by page (ruling 87). Where any section
   root of a page holds a wide block as a direct child, in every section root of that page the direct children that
   are not wide, full, left or right keep the content width but start where the wide block starts: half the space the
   wide size leaves, or the side padding when the window is narrower. Core centres them with `margin-left/right: auto
   !important`. A page with no wide block anywhere keeps the centred column. The centred patterns (L9: cta-band,
   join-cta) stay centred. Buttons justified centre stay centred; Buttons justified left (core's default) start at
   the wide edge, like the text; a gold rule follows the same edge. Nothing deeper changes. */
:has(> .alignfull[class*="caw-pattern-"] > .alignwide) > .wp-block-group.alignfull.is-layout-constrained[class*="caw-pattern-"]:not(.caw-pattern-cta-band, .caw-pattern-join-cta) > :not(.alignwide, .alignfull, .alignleft, .alignright, .wp-block-buttons.is-content-justification-center) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
