/**
 * Dimension: block styles and details theme.json can't express.
 * Loaded on the front end and in the editor.
 */

/* Header, main and footer meet edge to edge, so full-width sections stack without a strip of page colour between them. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks {
	position: relative;
}

/* Header: sticky and over-the-first-section variants. Template parts wrap the header, so the wrapper is what sticks. */
.wp-site-blocks > header:has(.dimension-sticky-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 30;
}

.dimension-sticky-header {
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

/* A blurred header would trap the full-screen mobile menu inside it, so the blur is dropped while the menu is open. */
.dimension-sticky-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.wp-site-blocks > header:has(.dimension-overlay-header) {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 30;
}

@media (max-width: 600px) {
	.wp-site-blocks > header:has(.dimension-sticky-header) {
		top: 0;
	}
}

/* A long site title wraps instead of pushing the menu button off small screens. */
header .wp-block-site-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

header .wp-block-group:has(> .wp-block-site-title),
header .wp-block-group:has(> .wp-block-site-logo + .wp-block-site-title) {
	min-width: 0;
	flex-shrink: 1;
}

/* Menus: dropdowns as small floating panels, and a roomy mobile menu. */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--float);
	padding: 0.5rem;
	min-width: 220px !important;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.8rem;
	border-radius: var(--wp--custom--radius--small);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--base-2);
	text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: var(--wp--preset--font-size--large);
	gap: 0.9rem;
	padding-top: var(--wp--preset--spacing--50);
}

/* Mobile menu: full-width rows with a hairline between them. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-1);
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	background: none !important;
	border-radius: 0 !important;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0;
}

/* In the open mobile menu, items line up on the left and sub-menus sit indented under their parent. */
.wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item) {
	align-items: flex-start !important;
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	background: transparent;
	padding: 0.75rem 0 0 1.25rem !important;
	min-width: 0 !important;
}

/* Display type: the large sizes tighten slightly. */
.has-display-font-size,
.has-xx-large-font-size {
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Links in running text keep an underline that sits clear of descenders. */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Visible keyboard focus on every surface: the ring takes the text colour of the section it's in. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Outline buttons follow the text colour of the section, so they work on light, dark and photo backgrounds. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	border: 1.5px solid currentColor;
	color: inherit;
	padding: calc(0.9rem - 1.5px) calc(1.6rem - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
}

/* Button style: Text link. */
.wp-block-button.is-style-text-link > .wp-block-button__link {
	background: none !important;
	color: inherit;
	padding: 0.25rem 0;
	border-radius: 0;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.3em;
}

.wp-block-button.is-style-text-link > .wp-block-button__link:hover {
	text-decoration-color: transparent;
}

/* Paragraph style: Chip. A small rounded label for categories, plan names or status. */
.is-style-chip {
	width: fit-content;
	padding: 0.3em 0.85em;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 10%, transparent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.5;
}

/* Heading style: Narrow. */
.is-style-narrow {
	font-stretch: 78%;
	letter-spacing: -0.01em;
}

/* Image styles: Arch, Porthole and Shadow. */
.wp-block-image.is-style-arch img {
	border-radius: 999px 999px var(--wp--custom--radius--medium) var(--wp--custom--radius--medium);
}

.wp-block-image.is-style-porthole img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
}

.wp-block-image.is-style-shadow img {
	box-shadow: var(--wp--preset--shadow--deep);
}

/* Section style: Waterline. A gentle wave cut into the bottom edge; the next section runs underneath it. */
.is-style-waterline {
	position: relative;
	z-index: 1;
	margin-bottom: -44px !important;
	padding-bottom: calc(var(--wp--preset--spacing--60) + 44px);
	-webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 43px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v22c-160 22-320 22-480 4S640-4 480 10 160 40 0 22z'/%3E%3C/svg%3E") bottom / 100% 44px no-repeat;
	mask: linear-gradient(#000 0 0) top / 100% calc(100% - 43px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v22c-160 22-320 22-480 4S640-4 480 10 160 40 0 22z'/%3E%3C/svg%3E") bottom / 100% 44px no-repeat;
}

.is-style-waterline + * {
	padding-top: calc(var(--wp--preset--spacing--60) + 44px) !important;
}

/* List style: Checklist. */
.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.is-style-checklist li {
	position: relative;
	padding-left: 2rem;
}

.is-style-checklist li + li {
	margin-top: 0.65em;
}

.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-1.4-1.4L8.5 11 6.7 9.3l-1.4 1.4 3.2 3.2 6.2-6.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.7-12.3-1.4-1.4L8.5 11 6.7 9.3l-1.4 1.4 3.2 3.2 6.2-6.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:is(.is-style-depth-3, .is-style-depth-4, .is-style-depth-5, .is-style-glass, .has-accent-1-background-color, .has-accent-2-background-color, .has-accent-3-background-color) .is-style-checklist li::before {
	background: var(--wp--preset--color--accent-4);
}

/* List style: Soundings. A short depth mark in front of each item. */
.is-style-soundings {
	list-style: none;
	padding-left: 0;
}

.is-style-soundings li {
	position: relative;
	padding-left: 1.75em;
}

.is-style-soundings li + li {
	margin-top: 0.6em;
}

.is-style-soundings li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 1em;
	height: 2px;
	background: currentColor;
	opacity: 0.55;
}

/* Separator style: Depth scale. A ruler with a long tick every fifth mark. */
.wp-block-separator.is-style-depth-scale {
	border: 0;
	width: 100%;
	height: 12px;
	background:
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 60px) bottom left / 100% 12px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px) bottom left / 100% 6px no-repeat,
		linear-gradient(currentColor, currentColor) bottom left / 100% 1px no-repeat;
}

/* Separator style: Wave. A short wave mark; widen it with the block's width setting if needed. */
.wp-block-separator.is-style-wave {
	border: 0;
	width: 80px;
	max-width: 100%;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") left center / 40px 10px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") left center / 40px 10px repeat-x;
}

/* Glass panels blur what's behind them. */
.is-style-glass {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* Big figures in stats rows. */
.dimension-figure {
	font-variant-numeric: tabular-nums;
}

/* Star ratings in testimonials: a darker gold on light sections (at least 3:1 in every style variation),
   the bright Buoy gold on dark ones. */
.dimension-stars {
	letter-spacing: 0.15em;
}

.dimension-stars.has-highlight-color {
	color: color-mix(in srgb, var(--wp--preset--color--highlight) 55%, var(--wp--preset--color--contrast)) !important;
}

:is(.is-style-depth-3, .is-style-depth-4, .is-style-depth-5, .is-style-glass, .wp-block-cover.is-dark, .has-accent-1-background-color, .has-accent-2-background-color, .has-accent-3-background-color) .dimension-stars.has-highlight-color {
	color: var(--wp--preset--color--highlight) !important;
}

/* FAQ / Details: a plus that turns into a minus, no default triangle. */
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-weight: 400;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	line-height: 1.75rem;
	text-align: center;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
}

/* Post cards and rows (templates and query patterns). */
.dimension-post-row {
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-post-template .wp-block-post:last-child .dimension-post-row {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.dimension-post-card {
	height: 100%;
}

.wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.wp-block-post-featured-image a:hover img {
	transform: scale(1.03);
}

.wp-block-post-featured-image:has(a) {
	overflow: hidden;
}

/* Sticky posts get a small buoy marker before the title. */
.sticky .wp-block-post-title::before {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-right: 0.4em;
	border-radius: 50%;
	background: var(--wp--preset--color--highlight);
	vertical-align: 0.18em;
}

/* Category links in post meta read as small chips. */
.dimension-chips .wp-block-post-terms a,
.wp-block-post-terms.is-style-chips a {
	display: inline-block;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 9%, transparent);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
}

.wp-block-post-terms.is-style-chips .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Search and form fields. */
.wp-block-search__input,
.wp-block-post-comments-form :is(input:not([type="submit"]):not([type="checkbox"]), textarea) {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--button);
	padding: 0.8rem 1rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

/* Comments. */
.wp-block-comment-template .wp-block-avatar img {
	border-radius: 50%;
}

/* The comment text column may shrink, so long code or links in a comment can't widen the page. */
.wp-block-comment-template .wp-block-group {
	min-width: 0;
}

.wp-block-comment-content {
	overflow-wrap: anywhere;
}

/* Long code lines and wide tables scroll inside their own box. */
pre {
	overflow-x: auto;
	max-width: 100%;
}

.wp-block-comment-content table {
	display: block;
	overflow-x: auto;
}

/* Sidebar layouts stack under the content on small screens. */
@media (max-width: 781px) {
	.dimension-sidebar-layout > .wp-block-column {
		flex-basis: 100% !important;
	}
}


/* Round initials and icon tiles keep their size inside rows. */
.dimension-badge {
	flex-shrink: 0;
	aspect-ratio: 1;
}

.dimension-badge > p {
	margin: 0;
}

/* Two sections of the same colour in a row share one gap instead of doubling it. */
.is-style-depth-1 + .is-style-depth-1,
.is-style-depth-2 + .is-style-depth-2 {
	padding-top: 0 !important;
}

/* Post cards without a featured image get a depth chart in its place, so grids stay even. */
.dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	flex-shrink: 0;
	align-self: stretch;
	width: 100%;
	height: 0;
	padding-top: 66.667%;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--base-3) url("../images/chart-shallows.webp") center / cover;
}

.wp-block-post:nth-child(3n + 2) .dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
	background-image: url("../images/chart-tide.webp");
}

.wp-block-post:nth-child(3n + 3) .dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
	background-image: url("../images/chart-deep.webp");
}

/* Pagination: numbers as small round targets. */
.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: 999px;
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--base-2);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* On phones the header keeps the menu button and drops the extra call to action. */
@media (max-width: 480px) {
	header .wp-block-buttons {
		display: none;
	}
}

/* Header buttons stay on one line. */
header .wp-block-button__link {
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------------------------
 * Depth and motion: buttons, cards, photos and menus respond to the pointer; sections rise into
 * view as the page scrolls (CSS only; browsers without scroll timelines simply show everything).
 * ------------------------------------------------------------------------------------------- */

/* Buttons with a chosen colour drop the site-wide gradient so that colour shows. */
.wp-block-button__link[class*="-background-color"] {
	background-image: none;
}

.wp-element-button,
.wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--wp--preset--color--accent-1) 65%, transparent);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY(0);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-text-link > .wp-block-button__link {
	box-shadow: none;
}

.wp-block-button.is-style-text-link > .wp-block-button__link:hover {
	transform: none;
}

/* Cards lift on hover; photos inside them ease in. */
:is(.is-style-card, .is-style-card-raised, .dimension-post-card, .dimension-project) {
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

:is(.is-style-card, .is-style-card-raised, .dimension-post-card):hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--preset--shadow--float) !important;
}

:is(.is-style-card, .is-style-card-raised, .dimension-post-card, .dimension-project) :is(.wp-block-image, .wp-block-post-featured-image) {
	overflow: hidden;
}

:is(.is-style-card, .is-style-card-raised, .dimension-post-card, .dimension-project) img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:is(.is-style-card, .is-style-card-raised, .dimension-post-card, .dimension-project):hover img {
	transform: scale(1.05);
}

.wp-block-cover:not(.alignfull) {
	overflow: hidden;
}

.wp-block-cover:not(.alignfull) .wp-block-cover__image-background {
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wp-block-cover:not(.alignfull):hover .wp-block-cover__image-background {
	transform: scale(1.04);
}

/* Icon tiles pick up a soft gradient. */
.dimension-badge:has(img) {
	background: linear-gradient(135deg, var(--wp--preset--color--base-3) 0%, color-mix(in srgb, var(--wp--preset--color--accent-4) 70%, var(--wp--preset--color--base)) 100%) !important;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--accent-1) 12%, transparent);
}

/* Menu links: soft rounded tabs. Hover tints the link; the current page keeps a light Tide wash. */
header .wp-block-navigation .wp-block-navigation__container {
	gap: 0.25rem;
}

.wp-block-navigation .wp-block-navigation-item__content {
	transition: background-color 0.2s ease, color 0.2s ease;
}

header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	font-weight: 500;
}

header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	padding-right: 0.35rem;
}

header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon {
	margin: 0 0.75rem 0 0.2rem;
	transition: transform 0.2s ease;
}

header .wp-block-navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-icon {
	transform: rotate(180deg);
}

header .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-item__content:hover),
header .wp-block-navigation .wp-block-navigation__container > .has-child:is(:hover, :focus-within) {
	background: color-mix(in srgb, currentColor 7%, transparent);
	border-radius: 999px;
}

header .wp-block-navigation .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) {
	background: color-mix(in srgb, var(--wp--preset--color--accent-1) 11%, transparent);
	border-radius: 999px;
}

header .wp-block-navigation .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-1);
	font-weight: 600;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: none !important;
}

/* Over a photo the current page reads in white rather than Tide. */
header:has(.dimension-overlay-header) .wp-block-navigation .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) {
	background: color-mix(in srgb, currentColor 16%, transparent);
}

header:has(.dimension-overlay-header) .wp-block-navigation .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	color: inherit;
}

/* Dropdown panels open a little below the bar, with roomier items that tint on hover. */
header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	margin-top: 0.5rem;
}

header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset: -0.6rem 0 auto;
	height: 0.6rem;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 0.9rem;
	font-weight: 500;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--accent-1);
}

/* The header button sits after a thin divider, a size smaller than buttons in the page. */
header .wp-block-navigation + .wp-block-buttons {
	padding-left: var(--wp--preset--spacing--40);
	border-left: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

header .wp-block-buttons .wp-block-button__link {
	padding: 0.7rem 1.3rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Heading and paragraph style: Gradient. */
.is-style-gradient {
	background: linear-gradient(115deg, var(--wp--preset--color--contrast) 20%, var(--wp--preset--color--accent-1) 75%, color-mix(in srgb, var(--wp--preset--color--accent-1) 60%, var(--wp--preset--color--accent-5)) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

:is(.is-style-depth-3, .is-style-depth-4, .is-style-depth-5, .wp-block-cover.is-dark, .is-style-glass) .is-style-gradient {
	background-image: linear-gradient(115deg, var(--wp--preset--color--base) 30%, var(--wp--preset--color--accent-4) 80%, color-mix(in srgb, var(--wp--preset--color--accent-4) 50%, var(--wp--preset--color--accent-5)) 100%);
}

/* Post cards: photo edge to edge at the top, text below. */
.dimension-post-card .wp-block-post-featured-image,
.dimension-post-card .wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--large) var(--wp--custom--radius--large) 0 0;
	margin: 0;
}

.dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
	margin-bottom: 0;
	border-radius: var(--wp--custom--radius--large) var(--wp--custom--radius--large) 0 0;
}

/* Single post: the featured image overlaps the coloured header band. */
.dimension-single-hero:has(+ .dimension-single-media img) {
	padding-bottom: calc(var(--wp--preset--spacing--60) + 7rem) !important;
}

.dimension-single-media {
	margin-top: -7rem !important;
	position: relative;
	z-index: 2;
}

.dimension-single-media:not(:has(img)) {
	display: none;
}

.dimension-single-media img {
	box-shadow: var(--wp--preset--shadow--deep);
}

.dimension-meta {
	width: fit-content;
	padding: 0.5rem 1.25rem 0.5rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	box-shadow: var(--wp--preset--shadow--soft);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wp-block-post-author {
	align-items: center;
	gap: 0.65rem;
}

.wp-block-post-author__avatar {
	margin: 0;
}

.wp-block-post-author__avatar img {
	border-radius: 50%;
	display: block;
}

.wp-block-post-author__content {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wp-block-post-author__byline {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-post-author__name {
	margin: 0;
	font-weight: 600;
}

.wp-block-post-author__bio {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--contrast-2);
}

/* Reading: comfortable article typography. */
.wp-block-post-content > :is(h2, h3) {
	margin-top: 2.2em;
}

.wp-block-post-content :where(p:not(.wp-block-post-excerpt__excerpt), ul:not(.wp-block-post-template) > li, ol > li) a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent-1);
	text-decoration-thickness: 1.5px;
}

.wp-block-post-content > .wp-block-quote {
	padding: 1.25rem 1.5rem;
	border-radius: var(--wp--custom--radius--medium);
	border: 0;
	border-left: 4px solid transparent;
	background: linear-gradient(var(--wp--preset--color--base-2), var(--wp--preset--color--base-2)) padding-box, var(--wp--preset--gradient--tide) border-box;
}

.wp-block-post-content :is(.wp-block-image, .wp-block-gallery) img {
	border-radius: var(--wp--custom--radius--medium);
}

/* Previous and next post cards. */
.dimension-post-nav > .wp-block-group:not(:has(a)) {
	visibility: hidden;
}

.dimension-post-nav a {
	display: block;
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

/* Comments sit in a quiet panel, each one on its own card. */
.wp-block-comments {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--base-2);
}

.wp-block-comment-template li {
	list-style: none;
}

.wp-block-comment-template > li {
	padding: 1.25rem;
	margin-bottom: 1rem;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Sections rise gently into view. */
@supports (animation-timeline: view()) {
	@keyframes dimension-rise {
		from {
			opacity: 0;
			transform: translateY(32px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}

	body:not(.editor-styles-wrapper) main .alignfull:not(:first-child) > :is(.alignwide, .wp-block-columns, .wp-block-group, .wp-block-heading),
	body:not(.editor-styles-wrapper) main .wp-block-post-template > li {
		animation: dimension-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 45%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* Figures on dark photo and gradient bands get a light gradient. */
.wp-block-cover.is-dark .dimension-figure,
:is(.is-style-depth-4, .is-style-depth-5) .dimension-figure {
	background: linear-gradient(115deg, var(--wp--preset--color--base) 30%, var(--wp--preset--color--accent-4) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* The text part of a post card fills the card, so dates line up along the bottom of a row. */
.dimension-post-card > .wp-block-group {
	flex: 1 1 auto;
}

/* Previous / next cards: the label sits small above the post title. */
.dimension-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--wp--preset--font-family--instrument-sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------------------------
 * Hero: a pill with a live dot, a glow behind the photo, floating cards and a staggered entrance.
 * ------------------------------------------------------------------------------------------- */
.dimension-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.4rem 0.95rem 0.4rem 0.75rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-1) 18%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent);
	box-shadow: var(--wp--preset--shadow--soft);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.dimension-pill::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-5);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent-5) 60%, transparent);
	animation: dimension-pulse 2.4s ease-out infinite;
}

@keyframes dimension-pulse {
	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent-5) 55%, transparent);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px transparent;
	}
}

/* The glow behind the photo reaches past its column; keep it from widening the page when the columns stack. */
.dimension-hero {
	overflow-x: clip;
}

.dimension-hero .wp-block-column:has(.dimension-hero-media) {
	position: relative;
}

.dimension-hero .wp-block-column:has(.dimension-hero-media)::before {
	content: "";
	position: absolute;
	inset: 6% -5% -7% 8%;
	z-index: 0;
	border-radius: 40%;
	background:
		radial-gradient(50% 50% at 30% 40%, color-mix(in srgb, var(--wp--preset--color--accent-5) 55%, transparent), transparent 70%),
		radial-gradient(45% 45% at 75% 75%, color-mix(in srgb, var(--wp--preset--color--accent-6) 40%, transparent), transparent 70%);
	filter: blur(40px);
	pointer-events: none;
}

.dimension-hero-media {
	z-index: 1;
	box-shadow: var(--wp--preset--shadow--deep);
}

.dimension-hero-media .wp-block-cover__inner-container {
	position: static;
}

.dimension-float {
	position: relative;
	z-index: 2;
	animation: dimension-float 7s ease-in-out infinite;
}

.dimension-float-top {
	position: absolute;
	top: 1.75rem;
	right: 1.75rem;
	padding: 0.9rem 1.25rem 0.9rem 0.9rem !important;
	animation-delay: -3.5s;
}

@keyframes dimension-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

@media (max-width: 600px) {
	.dimension-float-top {
		top: 1rem;
		right: 1rem;
	}
}

@keyframes dimension-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

body:not(.editor-styles-wrapper) .dimension-hero .wp-block-column:first-child > * {
	animation: dimension-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body:not(.editor-styles-wrapper) .dimension-hero .wp-block-column:first-child > :nth-child(2) {
	animation-delay: 0.08s;
}

body:not(.editor-styles-wrapper) .dimension-hero .wp-block-column:first-child > :nth-child(3) {
	animation-delay: 0.16s;
}

body:not(.editor-styles-wrapper) .dimension-hero .wp-block-column:first-child > :nth-child(4) {
	animation-delay: 0.24s;
}

body:not(.editor-styles-wrapper) .dimension-hero .wp-block-column:first-child > :nth-child(5) {
	animation-delay: 0.32s;
}

/* ---------------------------------------------------------------------------------------------
 * Icons: tiles fill with the Tide gradient, the icon turns white, and the tile tilts and glows
 * when its feature, contact line or card is hovered.
 * ------------------------------------------------------------------------------------------- */
.dimension-badge:has(img) {
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1.4), box-shadow 0.35s ease, background 0.35s ease;
}

.dimension-badge img {
	transition: filter 0.3s ease;
}

.wp-block-group:has(> .dimension-badge img):hover > .dimension-badge {
	background: var(--wp--preset--gradient--tide) !important;
	box-shadow: var(--wp--preset--shadow--glow);
	transform: translateY(-3px) rotate(-6deg) scale(1.06);
}

.wp-block-group:has(> .dimension-badge img):hover > .dimension-badge img {
	filter: brightness(0) invert(1);
}

.dimension-feature {
	border-radius: var(--wp--custom--radius--large);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dimension-feature:hover {
	background-color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--float);
	transform: translateY(-4px);
}

.wp-block-social-link {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1.4);
}

.wp-block-social-link:hover {
	transform: translateY(-3px) scale(1.12);
}

/* ---------------------------------------------------------------------------------------------
 * Blog: the newest post as a wide feature, category chips, and the journal mosaic.
 * ------------------------------------------------------------------------------------------- */
.dimension-post-card .wp-block-post-title a {
	transition: color 0.2s ease;
}

.dimension-post-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-1);
}

.dimension-category-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dimension-category-chips li {
	margin: 0;
}

.dimension-category-chips a {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dimension-category-chips a:hover,
.dimension-category-chips .current-cat > a {
	border-color: transparent;
	background: var(--wp--preset--gradient--tide);
	color: var(--wp--preset--color--base);
	transform: translateY(-2px);
}

@media (min-width: 900px) {
	/* Blog and archives: the first post spans the row, photo on the left. */
	.dimension-feature-grid > li:first-child {
		grid-column: 1 / -1;
	}

	.dimension-feature-grid > li:first-child .dimension-post-card {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.dimension-feature-grid > li:first-child .wp-block-post-featured-image {
		flex: 0 0 58%;
		aspect-ratio: auto !important;
		min-height: 380px;
	}

	.dimension-feature-grid > li:first-child .wp-block-post-featured-image,
	.dimension-feature-grid > li:first-child .wp-block-post-featured-image img {
		border-radius: var(--wp--custom--radius--large) 0 0 var(--wp--custom--radius--large);
		height: 100% !important;
		object-fit: cover;
	}

	.dimension-feature-grid > li:first-child .dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
		flex: 0 0 58%;
		width: auto;
		height: auto;
		padding-top: 0;
		min-height: 380px;
		border-radius: var(--wp--custom--radius--large) 0 0 var(--wp--custom--radius--large);
	}

	.dimension-feature-grid > li:first-child .dimension-post-card > .wp-block-group {
		justify-content: center;
		padding: var(--wp--preset--spacing--50) !important;
	}

	.dimension-feature-grid > li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--xx-large) !important;
		line-height: 1.05;
	}

	.dimension-feature-grid > li:first-child .wp-block-post-excerpt {
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	/* Journal mosaic: one large story beside two compact ones. */
	.dimension-journal-grid {
		grid-template-columns: 1.3fr 1fr !important;
	}

	.dimension-journal-grid > li:first-child {
		grid-row: span 2;
	}

	.dimension-journal-grid > li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
	}

	.dimension-journal-grid > li:not(:first-child) .dimension-post-card {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.dimension-journal-grid > li:not(:first-child) .wp-block-post-featured-image {
		flex: 0 0 40%;
		aspect-ratio: auto !important;
	}

	.dimension-journal-grid > li:not(:first-child) .wp-block-post-featured-image,
	.dimension-journal-grid > li:not(:first-child) .wp-block-post-featured-image img {
		height: 100% !important;
		object-fit: cover;
		border-radius: var(--wp--custom--radius--large) 0 0 var(--wp--custom--radius--large);
	}

	.dimension-journal-grid > li:not(:first-child) .dimension-post-card:not(:has(.wp-block-post-featured-image))::before {
		flex: 0 0 40%;
		width: auto;
		height: auto;
		padding-top: 0;
		border-radius: var(--wp--custom--radius--large) 0 0 var(--wp--custom--radius--large);
	}

	.dimension-journal-grid > li:not(:first-child) .wp-block-post-excerpt {
		display: none;
	}
}

/* Back to top: a round button that appears after the first screen. */
.dimension-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 40;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: var(--wp--preset--gradient--tide, var(--wp--preset--color--accent-1));
	color: #fff;
	border: 2px solid color-mix(in srgb, #fff 55%, transparent);
	box-shadow: var(--wp--preset--shadow--glow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.25s ease;
}

.dimension-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dimension-to-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--deep);
}

.dimension-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

.dimension-to-top svg {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform 0.2s ease;
}

.dimension-to-top:hover svg {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.dimension-to-top,
	.dimension-to-top svg {
		transition: none;
	}
}
