/*
 * Header: skip link, utility bar, main bar, search field, desktop navigation and its panels
 * (pattern contract 1.7, 2.7, 3.4 rules 7 to 9, 3.5, 3.8 N1 to N12, N22 to N24, N28, N30 to N32; 1.0.5 for the panels;
 * 1.0.6 for the white utility bar, the main bar's measures from the reference site and the square search bar; 1.0.7 for
 * the toggle's ring inside its box (1.7 rule 5) and the header without JavaScript; 1.0.8 for the margin under the
 * shrunk header).
 *
 * Colours only through the preset and custom variables of contract section 1. The drawer and the phone header
 * are in drawer.css; the focus ring itself is in the portable blocks.css.
 */

/* Anchor offset (1.7): a target clears the sticky main bar. */
html {
	scroll-padding-top: calc(var(--wp--custom--header--height-shrunk) + var(--wp-admin--admin-bar--height, 0px));
}

/* Text for assistive technology only. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal;
}

/* Skip link: off-screen until it has focus; then top left, white, ink, with the ring of 1.7 (3.5). */
.caw-skip-link {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 0.5rem);
	left: -999rem;
	z-index: 1000;
	min-width: 2.75rem;
	min-height: 1.5rem;
	padding: 0.75rem 1.25rem;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: underline;
}

.caw-skip-link:focus {
	left: 0.5rem;
}

/* The skip link's target takes focus without a ring (1.7 rule 2). */
#main:focus {
	outline: none;
}

/* Header -------------------------------------------------------------------------------------------------- */

.caw-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background-color: var(--wp--preset--color--white);
}

.caw-header__utility,
.caw-header__main {
	box-sizing: border-box;
	padding-right: max(var(--wp--custom--gutter), (100% - var(--wp--style--global--wide-size, 1220px)) / 2);
	padding-left: max(var(--wp--custom--gutter), (100% - var(--wp--style--global--wide-size, 1220px)) / 2);
}

/* Utility bar (2.7, 3.5, 3.7; since 1.0.6): white with a 1px mist rule at its bottom edge, 2.25rem high including it;
   the links, then the cart, in Montserrat 500 capitals (by style: the stored labels are not changed), nav-grey. */
.caw-header__utility {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
	height: var(--wp--custom--header--utility-height);
	border-bottom: 1px solid var(--wp--preset--color--mist);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--nav-grey);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: uppercase;
}

.caw-utility__list {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The bar's line height of 1.5, not the text elements' calc() of 1.4. */
.caw-utility__item {
	line-height: inherit;
}

.caw-header .caw-utility__link,
.caw-header__utility .caw-cart {
	color: var(--wp--preset--color--nav-grey);
	text-decoration: none;
}

/* Under the pointer and with keyboard focus: ink, never underlined; the ring of 1.7 shows on the white bar. */
.caw-header .caw-utility__link:is(:hover, :focus-visible),
.caw-header__utility .caw-cart:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.caw-header__utility .caw-cart {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 0.375rem;
}

.caw-header__utility .caw-cart svg {
	width: 1.125rem;
	height: 1.125rem;
}

/* Main bar ------------------------------------------------------------------------------------------------ */

.caw-header__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--wp--custom--header--height-shrunk);
	background-color: var(--wp--preset--color--white);
}

.caw-header__logo {
	display: block;
	flex: none;
	line-height: 0;
}

.caw-header__logo img {
	display: block;
	width: auto;
	height: 3rem;
}

/* The two drawer buttons are 44px targets (3.5); their phone look is in drawer.css. */
.caw-header__search-toggle,
.caw-header__menu-toggle {
	min-width: 2.75rem;
	min-height: 2.75rem;
}

/* Search fields: white, ink text, meta-grey placeholder and border, square (2.7). Every submit is a 44px target (3.5). */
.caw-search__input {
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--meta-grey);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 1rem;
}

.caw-search__input::placeholder {
	color: var(--wp--preset--color--meta-grey);
	opacity: 1;
}

.caw-search__submit {
	min-width: 2.75rem;
	min-height: 2.75rem;
}

.caw-header .caw-search {
	position: relative;
	display: flex;
	align-items: center;
}

/* The header's search field (3.5, since 1.0.6): the full width of its column, 2.75rem high, square, its submit at its
   right end; the reference's long bar above the navigation. */
.caw-header .caw-search__input {
	width: 100%;
	height: 2.75rem;
	padding: 0 3rem 0 1.25rem;
	border-radius: 0;
}

.caw-header .caw-search__submit {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--deep-teal);
	cursor: pointer;
}

.caw-header .caw-search__submit svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Primary navigation ------------------------------------------------------------------------------------- */

.caw-nav__list,
.caw-nav__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.caw-nav__list {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	height: 100%;
}

.caw-nav__item {
	display: flex;
	align-items: center;
}

/* An ordinary panel sits below its item; a mega panel below the whole main bar. */
.caw-nav__item--has-panel:not(.caw-nav__item--mega) {
	position: relative;
}

/* Links: nav-grey at rest; ink on hover and while open; the current page slate with a 3px teal underline (2.7). */
.caw-header .caw-nav__link {
	padding-block: 0.25rem;
	color: var(--wp--preset--color--nav-grey);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.caw-header .caw-nav__link:hover,
.caw-header .caw-nav__item.is-open > .caw-nav__link {
	color: var(--wp--preset--color--ink);
}

.caw-header .caw-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--slate);
	text-decoration: underline 3px var(--wp--preset--color--teal);
	text-underline-offset: 0.45em;
}

.caw-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.5rem;
	margin-left: 0.125rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--nav-grey);
	cursor: pointer;
}

.caw-nav__toggle:hover,
.caw-nav__item.is-open > .caw-nav__toggle {
	color: var(--wp--preset--color--ink);
}

/* A top-level toggle draws the ring of 1.7 inside its box (1.7 rule 5, since 1.0.7): the toggle stands right after its
   label, and a ring 4px outside the box covered the label's last letter. The ink outline is a 20px square 2px inside
   the 24px toggle; the white ring inside it, the chevron inside that. Wins over the portable ring by specificity. */
.caw-header .caw-nav__toggle:focus-visible {
	outline-offset: calc(-2 * var(--wp--custom--focus--ring-width));
	box-shadow: inset 0 0 0 calc(3 * var(--wp--custom--focus--ring-width)) var(--wp--custom--focus--ring-inner);
}

.caw-nav__chevron {
	width: 0.75rem;
	height: 0.75rem;
}

.caw-nav__item.is-open > .caw-nav__toggle .caw-nav__chevron {
	transform: rotate(180deg);
}

/* Panels: deep-teal, white text (2.7). Since contract 1.0.5 the reference site's look: a link of the list, in an
   ordinary or a mega panel, is Montserrat 500, 1.125rem on 1.625rem, a block 2.25rem high, 0.75rem clear of its
   column's edge; under the pointer and with keyboard focus it is nav.panelHover and not underlined (1.7, 2.7, 3.4 rule
   9). The sizes are set once here and made smaller from 1024 to 1279px below. */
.caw-nav__panel {
	--caw-nav-title-font-size: 1.25rem;
	--caw-nav-title-line-height: 1.625rem;
	--caw-nav-text-font-size: 1.125rem;
	--caw-nav-text-line-height: 1.625rem;
	--caw-nav-link-padding-block: 0.3125rem;
	--caw-nav-link-indent: 0.75rem;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	box-sizing: border-box;
	min-width: 16rem;
	padding: 1.5rem;
	background-color: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
}

/* N24: with JavaScript off a panel shows while the pointer is over its item or focus is inside it. */
.no-js .caw-nav__item:is(:hover, :focus-within) > .caw-nav__panel {
	display: block;
}

.caw-header .caw-nav__sublink {
	display: block;
	padding-block: var(--caw-nav-link-padding-block);
	padding-inline-start: var(--caw-nav-link-indent);
	color: var(--wp--preset--color--white);
	font-size: var(--caw-nav-text-font-size);
	font-weight: 500;
	line-height: var(--caw-nav-text-line-height);
	text-decoration: none;
}

/* The rollover: gold, no underline, under the pointer and with keyboard focus; the ring of 1.7 still shows. */
.caw-header .caw-nav__sublink:is(:hover, :focus-visible),
.caw-nav__mega a:not(.wp-element-button):is(:hover, :focus-visible) {
	color: var(--wp--custom--nav--panel-hover);
	text-decoration: none;
}

/* A group title (3.4 rule 7) is a label in the part title's type, and starts a column in a mega panel. */
.caw-nav__group-title {
	display: block;
	padding-block: var(--caw-nav-link-padding-block);
	padding-inline-start: var(--caw-nav-link-indent);
	font-size: var(--caw-nav-title-font-size);
	font-weight: 700;
	letter-spacing: normal;
	line-height: var(--caw-nav-title-line-height);
	text-transform: uppercase;
}

.caw-nav__subitem {
	break-inside: avoid;
}

/* A child the part already links to is not shown in the header panel (ruling 78 b); the drawer shows it. Not
   displayed, so it is no Tab stop either. A rule of its own: a browser without :has() would drop it with the next. */
.caw-nav__subitem--in-part {
	display: none;
}

/* A list left with no link to show takes no room: a group title is not left standing alone. */
.caw-nav__sub:not(:has(> li:not(.caw-nav__subitem--in-part, .caw-nav__group))) {
	display: none;
}

/* Mega panel (ruling 78 c; contract 1.0.5, 3.4 rule 9): full width under the main bar, inner width at most 1220px
   read in three equal parts: the part in the first third, the list in the other two behind a 2px white rule as tall
   as the taller of the two (the one grid row stretches the list). Never taller than the window below the header: it
   scrolls inside itself; the row keeps its content's height there, so the list's columns never spill sideways. Visual
   order is DOM order (3.4 rule 8): the two children are placed automatically, in their order, nothing is moved. */
.caw-nav__panel--mega {
	right: 0;
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--caw-panel-top, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-block: 2.8125rem;
	padding-right: max(var(--wp--custom--gutter), (100% - var(--wp--style--global--wide-size, 1220px)) / 2);
	padding-left: max(var(--wp--custom--gutter), (100% - var(--wp--style--global--wide-size, 1220px)) / 2);
}

.caw-nav__panel--mega:not([hidden]),
.no-js .caw-nav__item:is(:hover, :focus-within) > .caw-nav__panel--mega {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: stretch;
}

.caw-nav__panel--mega > .caw-nav__mega {
	--caw-nav-part-clear: 3.75rem;
	box-sizing: border-box;
	min-width: 0;
	padding-right: var(--caw-nav-part-clear);
}

.caw-nav__panel--mega > .caw-nav__sub {
	min-width: 0;
	column-gap: 0;
	border-left: 2px solid var(--wp--preset--color--white);
}

/* Six or more visible links stand in two columns of equal width, filled downwards; five or fewer in one. A group
   title is no link, and starts a column. */
.caw-nav__panel--mega > .caw-nav__sub:has(> :nth-child(6 of :not(.caw-nav__subitem--in-part, .caw-nav__group))) {
	column-count: 2;
}

.caw-nav__panel--mega .caw-nav__group {
	break-before: column;
}

.caw-nav__panel--mega .caw-nav__group:first-child {
	break-before: auto;
}

/* The part: a title, an introduction, one button, all on deep-teal; no picture since 1.0.5. Core's columns stand one
   under the other at the part's width; a picture an editor adds stands under the text, no wider than the part. Text
   is never broken inside a word. */
.caw-nav__mega {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--caw-nav-text-font-size);
	font-weight: 500;
	line-height: var(--caw-nav-text-line-height);
}

.caw-nav__mega .wp-block-columns {
	display: block;
	margin: 0;
}

.caw-nav__mega .wp-block-column {
	width: 100%;
	margin: 0;
	overflow-wrap: normal;
	word-break: normal;
}

/* A further column of the part's own Columns block stands 0.8125rem under the one before (3.4 rule 9). */
.caw-nav__mega > .wp-block-columns > .wp-block-column + .wp-block-column {
	margin-top: 0.8125rem;
}

.caw-nav__mega p {
	margin-block: 0 0.625rem;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--caw-nav-text-font-size);
	font-weight: 500;
	letter-spacing: normal;
	line-height: var(--caw-nav-text-line-height);
}

/* The title: the first paragraph of the first column of the part's own Columns block; a paragraph in a Columns
   block nested inside it is text (3.4 rule 9). The sizes follow the width range through the custom properties. */
.caw-nav__mega > .wp-block-columns > .wp-block-column:first-child > p:first-child {
	font-size: var(--caw-nav-title-font-size);
	font-weight: 700;
	line-height: var(--caw-nav-title-line-height);
	text-transform: uppercase;
}

.caw-nav__mega > .wp-block-columns > .wp-block-column:first-child > p:first-child :is(strong, b) {
	font-weight: inherit;
}

.caw-nav__mega a:not(.wp-element-button) {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.caw-nav__mega figure {
	max-width: 100%;
	margin: 0;
}

.caw-nav__mega img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* The button: the on-dark button of 2.5 in the panel's type, 0.8125rem below the text. */
.caw-nav__mega .wp-block-buttons {
	margin-block: 0.8125rem 0;
}

.caw-nav__mega .wp-block-button__link {
	padding: 0.625rem 1.25rem;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.35rem;
	text-transform: uppercase;
}

/* A button with no class takes the on-dark look in chrome on deep-teal; outline turns white (2.5). */
.caw-nav__mega .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep-teal);
}

.caw-nav__mega .wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible),
.caw-nav__mega .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

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

/* Desktop: the main bar is a grid, the logo at the left of a column that holds the search form above the navigation.
   Shrunk: 4rem, the search form hidden, the navigation in the one row beside the logo. The header sticks with the
   utility bar above the top edge. --------------------------------------------------------------------------- */
@media (min-width: 1024px) {
	/* Where the bottom of the header can be: a mega panel stops at the window's bottom edge below it. */
	.caw-header {
		--caw-panel-top: calc(var(--wp--custom--header--utility-height) + var(--wp--custom--header--height));
		top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--wp--custom--header--utility-height));
	}

	.caw-header.is-shrunk {
		--caw-panel-top: var(--wp--custom--header--height-shrunk);
	}

	/* Without JavaScript the class is never set, and a bar that stuck at its full height would stay over the page and
	   over every anchor's target: the header scrolls away with the page (3.5 "State", since 1.0.7). Below 1024px the
	   bar is 4rem at every scroll position and sticks as with JavaScript. */
	html.no-js .caw-header {
		position: static;
	}

	.caw-header__main {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0 2rem;
		height: var(--wp--custom--header--height);
	}

	.caw-header__logo {
		grid-column: 1;
		align-self: center;
	}

	/* The search form fills its column (the grid stretches it); the field fills the form. */
	.caw-header__main > .caw-search {
		grid-column: 2;
		align-self: center;
	}

	.caw-header__main > .caw-nav {
		grid-column: 2;
		align-self: stretch;
	}

	.caw-header__search-toggle,
	.caw-header__menu-toggle {
		display: none;
	}

	.caw-header.is-shrunk .caw-header__main {
		grid-template-rows: minmax(0, 1fr);
		height: var(--wp--custom--header--height-shrunk);
	}

	.caw-header.is-shrunk .caw-header__logo {
		grid-row: 1;
	}

	.caw-header.is-shrunk .caw-header__logo img {
		height: 3rem;
	}

	.caw-header.is-shrunk .caw-header__main > .caw-search {
		display: none;
	}

	.caw-header.is-shrunk .caw-header__main > .caw-nav {
		grid-row: 1;
		justify-self: end;
	}
}

/* From 1280px at rest (3.5 "Main bar from 1280px", since 1.0.6; the reference's measures): 10.25rem = 1.875rem of
   space, the 2.75rem search row, 1.625rem, the 2.4375rem navigation row, 1.5625rem. The logo, 5.625rem high, stands
   over all of it, centred. The navigation's grid row runs to the bar's bottom edge and each item carries the last
   1.5625rem as padding, so a panel still opens right under the bar and the pointer reaches it without leaving the
   item. The items are spread over the row, at least 0.5rem apart; a link is 2.4375rem high (0.5rem above and
   below); a toggle has no margin at its left. Shrunk, the rules above give the bar of before. */
@media (min-width: 1280px) {
	.caw-header__main {
		grid-template-rows: 1.875rem 2.75rem 1.625rem minmax(0, 1fr);
	}

	.caw-header__logo {
		grid-row: 1 / -1;
	}

	.caw-header__logo img {
		height: 5.625rem;
	}

	.caw-header__main > .caw-search {
		grid-row: 2;
	}

	.caw-header__main > .caw-nav {
		grid-row: 4;
	}

	.caw-header:not(.is-shrunk) .caw-nav__list {
		justify-content: space-between;
		gap: 0.5rem;
	}

	.caw-header:not(.is-shrunk) .caw-nav__item {
		padding-bottom: 1.5625rem;
	}

	.caw-header:not(.is-shrunk) .caw-nav__link {
		box-sizing: border-box;
		min-height: 2.4375rem;
		padding-block: 0.5rem;
	}

	.caw-header:not(.is-shrunk) .caw-nav__toggle {
		margin-left: 0;
	}

	/* Shrunk, the bar is 6.25rem lower than at rest: more than the 0.5rem between header.js's thresholds here (8rem
	   and 7.5rem, 3.5 "State"). The shrunk header takes the height the bar gives up as a bottom margin (contract
	   1.0.8), which changes with the bar's own transition (see "Motion"), so the header's box and its margin are
	   always as high as the header at rest: #main's top edge, everything in it and everything after it stand still in
	   both states and in every frame between, and the browser's scroll anchoring, on for the whole content, has
	   nothing to correct (H1 review, finding 1; H2 review A, finding 1). #main's top edge meets the shrunk bar at a
	   scroll position of 8.5rem; the thresholds stand close under it, so no more than 1rem of white shows under the
	   shrunk bar. At rest the header has no bottom margin. */
	.caw-header.is-shrunk {
		margin-bottom: calc(var(--wp--custom--header--height) - var(--wp--custom--header--height-shrunk));
	}

	/* An empty table box with no height of its own, at rest and shrunk: it keeps the first content's top margin inside
	   #main, so that margin and the header's do not collapse into one (the first content stands where it stood, and
	   #main's top edge stands under the header's margin box). */
	.caw-header ~ #main::before {
		content: "";
		display: table;
	}
}

/* From 1024 to 1279px (ruling 78 d): the navigation takes a row of its own under the logo and the search field,
   every label on one line, so that a member's seven items fit. Since 1.0.6 at rest 8.25rem: a 5rem row for the
   4rem logo and the search field, which fills the row to its right; the 2.75rem navigation row, whose items carry
   the 0.5rem below as padding so a panel opens right under the bar. Shrunk as before: 5.25rem, the search field
   gone. Panels take rule 9's smaller sizes (contract 3.4, 1.0.5). */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	/* :root, not html: event-html.css repeats the 4rem offset on html for pages without this file. */
	:root {
		scroll-padding-top: calc(5.25rem + var(--wp-admin--admin-bar--height, 0px));
	}

	.caw-header {
		--caw-panel-top: calc(var(--wp--custom--header--utility-height) + 8.25rem);
	}

	.caw-header.is-shrunk {
		--caw-panel-top: 5.25rem;
	}

	.caw-header .caw-header__main {
		grid-template-rows: 5rem minmax(0, 1fr);
		row-gap: 0;
		height: 8.25rem;
	}

	.caw-header.is-shrunk .caw-header__main {
		grid-template-rows: 2.75rem 2.5rem;
		height: 5.25rem;
	}

	.caw-header .caw-header__logo,
	.caw-header.is-shrunk .caw-header__logo {
		grid-row: 1;
	}

	.caw-header .caw-header__logo img {
		height: 4rem;
	}

	.caw-header .caw-header__main > .caw-search {
		grid-row: 1;
	}

	.caw-header:not(.is-shrunk) .caw-nav__item {
		padding-bottom: 0.5rem;
	}

	.caw-header.is-shrunk .caw-header__logo img {
		height: 2.5rem;
	}

	.caw-header .caw-header__main > .caw-nav,
	.caw-header.is-shrunk .caw-header__main > .caw-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: stretch;
	}

	.caw-nav__list {
		justify-content: space-between;
		gap: 0.5rem;
	}

	.caw-nav__toggle {
		margin-left: 0;
	}

	.caw-nav__panel {
		--caw-nav-title-font-size: 1.125rem;
		--caw-nav-title-line-height: 1.5rem;
		--caw-nav-text-font-size: 1rem;
		--caw-nav-text-line-height: 1.5rem;
		--caw-nav-link-padding-block: 0.25rem;
	}

	.caw-nav__panel--mega {
		padding-block: 2rem;
	}

	.caw-nav__panel--mega > .caw-nav__mega {
		--caw-nav-part-clear: 2rem;
	}
}

/* Motion (1.7): only without a reduced-motion preference. */
@media (prefers-reduced-motion: no-preference) {
	.caw-header__main,
	.caw-header__logo img {
		transition: height 0.3s ease-in-out;
	}

	/* The shrunk header's bottom margin (from 1280px) changes with the bar's height, at the same timing, so the two
	   together stay as high as the header at rest in every frame. */
	.caw-header {
		transition: margin-bottom 0.3s ease-in-out;
	}

	.caw-nav__chevron {
		transition: transform 0.2s ease-in-out;
	}

	/* The rollover's colour (3.4 rule 9). */
	.caw-header .caw-nav__sublink,
	.caw-nav__mega a:not(.wp-element-button) {
		transition: color 0.2s ease-in-out;
	}
}
