/*
Theme Name: yougroup
Theme URI: https://yougroup.mit.edu
Author: Computational Biophotonics Lab
Description: Standalone block theme for the MIT Computational Biophotonics Lab site. Design tokens live in theme.json; keep extra CSS small and presentational.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yougroup
Tags: full-site-editing, block-patterns, block-styles, accessibility-ready, one-column
*/

/*
 * Presentational CSS only. Colours, type, widths, spacing, radius, and motion
 * belong in theme.json. Restyle the site by changing tokens, not pages.
 */

:where(.wp-site-blocks *:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	outline-offset: 2px;
}

a {
	text-underline-offset: 0.12em;
}

a:hover {
	color: var(--wp--preset--color--accent-hover);
}

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	position: absolute;
	z-index: 100000;
	left: var(--wp--preset--spacing--40);
	top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Layout primitives ------------------------------------------------------- */

.rle-stack {
	display: flex;
	flex-direction: column;
	gap: var(--stack-gap, var(--wp--preset--spacing--40));
}

.rle-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cluster-gap, var(--wp--preset--spacing--30));
	min-width: 0;
}

.rle-section {
	padding-block: clamp(var(--wp--preset--spacing--60), 5vw, var(--wp--preset--spacing--80));
}

.rle-page-main {
	margin-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--80);
}

.rle-page-main:has(.wp-block-post-content > .rle-news:first-child) {
	margin-top: 0;
}

.rle-prose {
	max-width: var(--wp--custom--layout--reading-width);
}

:is(.rle-card-grid, .is-style-rle-card-grid) {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(min(100%, var(--wp--custom--layout--grid-min)), 1fr)
	);
	gap: var(--wp--preset--spacing--50);
}

:is(.rle-card-grid, .is-style-rle-card-grid) > * {
	min-width: 0;
}

:is(.rle-card-grid, .is-style-rle-card-grid) .wp-block-image {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

:is(.rle-card-grid, .is-style-rle-card-grid) .wp-block-image img,
:is(.rle-card-grid, .is-style-rle-card-grid) figure img {
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--sm);
}

:is(.rle-card-grid, .is-style-rle-card-grid) .wp-element-caption {
	margin: 0;
}

:is(.rle-photo-row, .is-style-rle-photo-row),
:is(.rle-photo-row, .is-style-rle-photo-row).is-layout-flow,
:is(.rle-photo-row, .is-style-rle-photo-row).is-layout-flex {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-color: var(--wp--preset--color--border) transparent;
	padding-block-end: var(--wp--preset--spacing--20);
}

:is(.rle-photo-row, .is-style-rle-photo-row) > * {
	flex: 0 0 auto;
	margin: 0;
}

:is(.rle-photo-row, .is-style-rle-photo-row).is-layout-flow > * {
	margin-block-start: 0;
}

:is(.rle-photo-row, .is-style-rle-photo-row) .wp-block-image {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	width: max-content;
	max-width: none;
	margin: 0;
}

.rle-page-main :is(.rle-photo-row, .is-style-rle-photo-row) img,
:is(.rle-photo-row, .is-style-rle-photo-row) .wp-block-image img,
:is(.rle-photo-row, .is-style-rle-photo-row) figure img {
	width: auto;
	height: var(--wp--custom--layout--photo-row-height);
	max-width: none;
	border-radius: var(--wp--custom--radius--sm);
}

:is(.rle-photo-row, .is-style-rle-photo-row) .wp-element-caption {
	margin: 0;
}

/* Chrome ----------------------------------------------------------------- */

html {
	scroll-padding-top: calc(
		var(--wp--custom--layout--header-height-compact) + var(--wp--preset--spacing--20)
	);
}

.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: var(--wp--custom--layout--header-z);
	background-color: var(--wp--preset--color--base);
}

.rle-site-header {
	--rle-mark-size: var(--wp--custom--layout--header-logo);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	min-height: var(--wp--custom--layout--header-height);
	padding-block: var(--wp--preset--spacing--50);
	box-shadow: 0 0 0 transparent;
	transition:
		min-height var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		padding-block var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		box-shadow var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.rle-site-header.is-layout-constrained,
.rle-site-header.is-layout-flow,
.rle-site-header.is-layout-flex {
	gap: 0;
}

.rle-site-header.is-layout-constrained > *,
.rle-site-header.is-layout-flow > * {
	margin-block-start: 0;
}

.rle-site-header.is-compact {
	--rle-mark-size: var(--wp--custom--layout--header-logo-compact);
	min-height: var(--wp--custom--layout--header-height-compact);
	padding-block: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--custom--shadow--sm);
}

.rle-site-header .wp-block-group,
.rle-site-header .wp-block-site-title,
:is(.rle-profile, .is-style-rle-profile),
:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__content,
.rle-prose {
	min-width: 0;
}

.rle-site-header__utility {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	width: 100%;
	box-sizing: border-box;
	max-height: var(--wp--custom--layout--header-mit);
	margin-bottom: var(--wp--preset--spacing--20);
	overflow: hidden;
	opacity: 1;
	visibility: visible;
	transition:
		max-height var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		margin-bottom var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		opacity var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		visibility 0s linear 0s;
}

.rle-site-header.is-compact .rle-site-header__utility {
	max-height: 0;
	margin-bottom: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		max-height var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		margin-bottom var(--wp--custom--duration--normal) var(--wp--custom--ease--standard),
		opacity var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		visibility 0s linear var(--wp--custom--duration--fast);
}

.rle-site-header__row,
.rle-site-header__row.is-layout-flex {
	gap: var(--wp--preset--spacing--30);
	width: 100%;
	min-width: 0;
	flex: 0 0 auto;
}

.rle-site-header__brand,
.rle-site-header__brand.is-layout-flex {
	gap: var(--wp--preset--spacing--20);
	min-width: 0;
	flex: 1 1 auto;
	align-items: center;
}

.rle-site-header__rle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rle-site-header__rle svg {
	display: block;
	height: var(--rle-mark-size);
	width: auto;
	transition: height var(--wp--custom--duration--normal) var(--wp--custom--ease--standard);
}

.rle-site-header .wp-block-site-title {
	overflow-wrap: anywhere;
	flex: 0 1 auto;
	min-width: 0;
	font-size: var(--wp--custom--layout--header-title-size);
	transition: font-size var(--wp--custom--duration--normal) var(--wp--custom--ease--standard);
}

.rle-site-header.is-compact .wp-block-site-title {
	font-size: var(--wp--preset--font-size--heading);
}

.rle-site-header .wp-block-site-title a {
	white-space: normal;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.rle-site-header .wp-block-navigation {
	flex: 0 0 auto;
	flex-shrink: 0;
	margin-inline-start: auto;
}

.rle-site-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: var(--wp--custom--layout--header-action-height);
	padding-inline: var(--wp--custom--layout--header-action-padding-inline);
	font-size: var(--wp--custom--layout--header-action-size);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 0;
	transition: background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.rle-site-header__action:hover,
.rle-site-header__action:focus-visible {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--accent);
}

.rle-site-header__mit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.rle-site-header__mit::after {
	content: "";
	position: absolute;
	inset: calc((var(--wp--custom--control--height) - var(--wp--custom--layout--header-mit)) / -2);
}

.rle-site-header__mit:hover {
	color: var(--wp--preset--color--accent-hover);
}

.rle-site-header__mit svg {
	display: block;
	height: var(--wp--custom--layout--header-mit);
	width: auto;
}

.rle-site-header .wp-block-navigation__responsive-container-open {
	min-height: var(--wp--custom--control--height);
	min-width: var(--wp--custom--control--height);
	align-items: center;
	justify-content: center;
}

.rle-site-header .wp-block-navigation .wp-block-navigation-item__content {
	min-height: var(--wp--custom--control--height);
	display: inline-flex;
	align-items: center;
	padding-inline: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

/*
 * WordPress shows overlay nav below 600px. Keep a single sticky row until
 * ~48rem so five links never wrap under the title.
 */
@media (max-width: 48rem) {
	.rle-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.rle-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.rle-site-header .rle-site-header__row.is-layout-flex {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		justify-content: start;
		gap: var(--wp--preset--spacing--20);
	}

	.rle-site-header__brand {
		grid-column: 1;
		grid-row: 1;
	}

	.rle-site-header .wp-block-site-title {
		font-size: var(--wp--preset--font-size--heading);
	}

	.rle-site-header .wp-block-navigation {
		grid-column: 2;
		grid-row: 1;
		margin-inline-start: 0;
		width: auto;
		justify-self: end;
		align-self: center;
	}
}

.rle-site-footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0;
	padding-block: var(--wp--preset--spacing--40);
	text-align: left;
	line-height: var(--wp--custom--leading--normal);
}

.rle-site-footer.is-layout-constrained,
.rle-site-footer.is-layout-flow,
.rle-site-footer.is-layout-flex {
	gap: 0;
}

.rle-site-footer.is-layout-constrained > *,
.rle-site-footer.is-layout-flow > * {
	margin-block-start: 0;
}

.rle-site-footer .wp-block-group,
.rle-site-footer p {
	min-width: 0;
}

.rle-site-footer p {
	margin: 0;
}

.rle-site-footer__row,
.rle-site-footer__row.is-layout-flex {
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	width: 100%;
	min-width: 0;
}

.rle-site-footer__identity,
.rle-site-footer__find {
	--stack-gap: var(--wp--preset--spacing--10);
	flex: 0 1 auto;
	max-width: 100%;
}

.rle-site-footer .rle-stack {
	gap: var(--wp--preset--spacing--10);
}

.rle-site-footer__find {
	margin-inline-start: auto;
	text-align: right;
}

@media (max-width: 48rem) {
	.rle-site-footer__find {
		flex: 1 1 100%;
		margin-inline-start: 0;
		text-align: left;
	}
}

:is(.rle-profile, .is-style-rle-profile).wp-block-media-text {
	gap: var(--wp--preset--spacing--50);
}

:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__content {
	padding-inline: 0;
	box-sizing: border-box;
}

:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__content > :first-child {
	margin-top: 0;
}

.rle-page-main img,
.rle-page-main iframe,
.rle-page-main figure,
.rle-page-main table {
	max-width: 100%;
}

.rle-page-main .wp-block-image img {
	border-radius: var(--wp--custom--radius--sm);
}

.rle-page-main .wp-block-embed {
	width: 100%;
}

.rle-page-main .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.rle-page-main .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

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

@media (max-width: 40rem) {
	:is(.rle-profile, .is-style-rle-profile).wp-block-media-text.is-stacked-on-mobile,
	:is(.rle-profile, .is-style-rle-profile).wp-block-media-text {
		display: flex;
		flex-direction: column;
		grid-template-columns: none !important;
	}

	:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__media {
		max-width: 12rem;
	}
}

:is(.rle-section-heading, .is-style-rle-section-heading) {
	border-bottom: 2px solid var(--wp--preset--color--accent);
	padding-bottom: var(--wp--preset--spacing--20);
}

.rle-page-main .wp-block-post-content > :is(.rle-section-heading, .is-style-rle-section-heading):not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* Component variants ----------------------------------------------------- */

:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__media,
:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__content {
	min-width: 0;
}

:is(.rle-profile, .is-style-rle-profile) .wp-block-media-text__media img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--wp--custom--radius--md);
}

:is(.rle-callout, .is-style-rle-callout) {
	border-left: var(--wp--preset--spacing--10) solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--sm);
	padding-block: var(--wp--preset--spacing--40);
	padding-inline: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--muted);
}

.rle-page-main:has(.rle-research),
.rle-page-main:has(.is-style-rle-research),
.rle-page-main:has(.rle-toc),
.rle-page-main:has(.is-style-rle-toc) {
	overflow: visible;
}

:is(.rle-research, .is-style-rle-research) {
	--stack-gap: var(--wp--preset--spacing--50);
	--wp--style--block-gap: var(--wp--preset--spacing--50);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
	overflow: visible;
	text-align: left;
}

.rle-research__topics {
	min-width: 0;
}

.rle-research__topics.rle-stack {
	--stack-gap: var(--wp--preset--spacing--60);
}

.rle-research__topics h3 {
	font-size: var(--wp--preset--font-size--heading);
}

:is(.rle-toc, .is-style-rle-toc) {
	--stack-gap: var(--wp--preset--spacing--40);
	--wp--style--block-gap: var(--wp--preset--spacing--40);
	box-sizing: border-box;
	min-width: 0;
	text-align: left;
}

:is(.rle-toc, .is-style-rle-toc).rle-stack,
:is(.rle-toc, .is-style-rle-toc) .rle-stack {
	--stack-gap: var(--wp--preset--spacing--20);
	--wp--style--block-gap: var(--wp--preset--spacing--20);
}

:is(.rle-toc, .is-style-rle-toc) p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--subtle);
}

:is(.rle-toc, .is-style-rle-toc) ul,
:is(.rle-toc, .is-style-rle-toc) .wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.rle-toc, .is-style-rle-toc) li {
	margin: 0;
	padding-block: var(--wp--preset--spacing--10);
}

:is(.rle-toc, .is-style-rle-toc) a {
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	padding-inline-end: var(--wp--preset--spacing--20);
	border-inline-end: 2px solid transparent;
	color: var(--wp--preset--color--subtle);
	text-decoration: none;
}

:is(.rle-toc, .is-style-rle-toc) a:hover,
:is(.rle-toc, .is-style-rle-toc) a:focus-visible {
	color: var(--wp--preset--color--accent-hover);
}

:is(.rle-toc, .is-style-rle-toc) [aria-current="true"] {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	border-inline-end-color: var(--wp--preset--color--accent);
}

:is(.rle-toc, .is-style-rle-toc) [aria-current="true"]:hover,
:is(.rle-toc, .is-style-rle-toc) [aria-current="true"]:focus-visible {
	color: var(--wp--preset--color--accent-hover);
}

@media (min-width: 72rem) {
	:is(.rle-research, .is-style-rle-research) {
		grid-template-columns: var(--wp--custom--layout--toc-width) minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--40);
		width: 100%;
		max-width: 100%;
	}

	:is(.rle-toc, .is-style-rle-toc) {
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: calc(var(--wp--custom--layout--header-height-compact) + var(--wp--preset--spacing--40));
		align-self: start;
		z-index: 1;
	}

	.rle-research__topics {
		grid-column: 2;
		grid-row: 1;
	}
}

/*
 * News banner: one token, --wp--custom--layout--news-banner-height, sizes
 * the black band and the image. The image is that height, square (object-fit
 * cover), and shifted down by 10% of the banner height. Replace kicker,
 * heading link, and image in the page; do not set image dimensions in markup.
 */
.rle-news,
.wp-block-group.rle-news,
.rle-news.is-layout-constrained,
.rle-news.is-layout-flow {
	--rle-news-shift: calc(0.1 * var(--wp--custom--layout--news-banner-height));
	box-sizing: border-box;
	overflow: visible;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--wp--custom--layout--news-banner-height);
	margin-bottom: calc(var(--rle-news-shift) + var(--wp--preset--spacing--70));
	padding-block: 0;
	padding-inline: var(--wp--custom--layout--page-gutter);
	color: var(--wp--preset--color--base);
}

.rle-news,
.rle-news__inner,
.rle-page-main:has(.rle-news) {
	overflow: visible;
}

.rle-news__inner,
.wp-block-group.rle-news__inner,
.rle-news__inner.is-layout-flex,
.rle-news__inner.is-layout-flow {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
	width: 100%;
	min-height: var(--wp--custom--layout--news-banner-height);
}

.rle-news__inner > * {
	min-width: 0;
}

.rle-news__copy {
	--stack-gap: var(--wp--preset--spacing--20);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--wp--custom--layout--news-banner-height);
	padding-block: var(--wp--preset--spacing--70);
}

.rle-news__kicker {
	margin: 0;
	font-size: var(--wp--custom--layout--header-action-size);
	font-weight: 800;
	line-height: var(--wp--custom--leading--tight);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--base);
}

@media (max-width: 40rem) {
	.rle-news__inner,
	.wp-block-group.rle-news__inner,
	.rle-news__inner.is-layout-flex,
	.rle-news__inner.is-layout-flow {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.rle-news__copy {
		min-height: 0;
		padding-block: var(--wp--preset--spacing--60);
	}

	.rle-news .rle-news__media {
		justify-self: start;
	}
}

.rle-news .wp-block-heading {
	min-width: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: var(--wp--custom--leading--tight);
	color: var(--wp--preset--color--base);
	overflow-wrap: anywhere;
}

.rle-news .wp-block-heading a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.rle-news .wp-block-heading a:hover,
.rle-news .wp-block-heading a:focus-visible {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.rle-news .rle-news__media {
	min-width: 0;
	margin: 0;
	margin-top: var(--rle-news-shift);
	margin-bottom: calc(-1 * var(--rle-news-shift));
	padding-top: 0;
	justify-self: end;
	align-self: start;
	position: relative;
	z-index: 1;
}

.rle-news__media a {
	display: block;
	color: inherit;
}

.rle-news__media img {
	display: block;
	width: min(100%, var(--wp--custom--layout--news-banner-height));
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center;
}

:is(.rle-pub-item, .is-style-rle-pub-item) {
	--stack-gap: var(--wp--preset--spacing--10);
	--wp--style--block-gap: var(--wp--preset--spacing--10);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-items: stretch;
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
	overflow-wrap: anywhere;
	text-align: left;
}

:is(.rle-pub-item, .is-style-rle-pub-item).rle-stack {
	gap: var(--wp--preset--spacing--10);
}

:is(.rle-pub-item, .is-style-rle-pub-item) > * {
	min-width: 0;
	max-width: 100%;
}

:is(.rle-pub-item, .is-style-rle-pub-item) > :first-child {
	margin-top: 0;
}

:is(.rle-pub-item, .is-style-rle-pub-item) > p:first-of-type a,
:is(.rle-profile, .is-style-rle-profile) .wp-block-heading a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

:is(.rle-pub-item, .is-style-rle-pub-item) > p:first-of-type a:hover,
:is(.rle-pub-item, .is-style-rle-pub-item) > p:first-of-type a:focus-visible,
:is(.rle-pub-item, .is-style-rle-pub-item) > p:first-of-type a:active,
:is(.rle-profile, .is-style-rle-profile) .wp-block-heading a:hover,
:is(.rle-profile, .is-style-rle-profile) .wp-block-heading a:focus-visible,
:is(.rle-profile, .is-style-rle-profile) .wp-block-heading a:active {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

:is(.rle-pub-item, .is-style-rle-pub-item) > p:first-of-type a::after,
:is(.rle-profile, .is-style-rle-profile) .wp-block-heading a::after {
	content: "\2192";
	margin-inline-start: 0.35em;
	font-weight: 400;
}

.rle-map iframe {
	width: 100%;
	height: var(--wp--custom--map--height);
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
}

.wp-block-navigation a:focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	outline-offset: 3px;
}

.wp-block-button__link {
	transition:
		color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.wp-block-button__link:hover,
.wp-block-button__link:active {
	background-color: var(--wp--preset--color--accent-hover);
}

.wp-block-button__link:disabled,
.wp-block-button__link[aria-disabled="true"] {
	background-color: var(--wp--preset--color--subtle);
	color: var(--wp--preset--color--base);
	cursor: not-allowed;
}

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