/*
 * Bio7 theme: the styles which theme.json can't express (dark mode, the
 * header, the hero, the screenshots, the light/dark comparison, tabs, cards).
 */

/* ---------- Dark mode (the switch in the header, else the system setting) ---------- */
html[data-theme="dark"] {
	--wp--preset--color--base: #0e1418;
	--wp--preset--color--surface: #151e24;
	--wp--preset--color--base-2: #18232a;
	--wp--preset--color--contrast: #e3eae6;
	--wp--preset--color--contrast-2: #9eaba6;
	--wp--preset--color--heading: #f1f6ef;
	--wp--preset--color--primary: #7cc74f;
	--wp--preset--color--primary-strong: #a3dc7c;
	--wp--preset--color--on-primary: #0e1418;
	--wp--preset--color--accent: #6fc3c9;
	--wp--preset--color--accent-2: #2b5a5f;
	--wp--preset--color--night: #0a1015;
	--wp--preset--color--border: #26333a;
	--bio7-contour: rgba(124, 199, 79, 0.10);
	--bio7-notice-bg: #2a2117;
	--bio7-notice-border: #d9822b;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--wp--preset--color--base: #0e1418;
		--wp--preset--color--surface: #151e24;
		--wp--preset--color--base-2: #18232a;
		--wp--preset--color--contrast: #e3eae6;
		--wp--preset--color--contrast-2: #9eaba6;
		--wp--preset--color--heading: #f1f6ef;
		--wp--preset--color--primary: #7cc74f;
		--wp--preset--color--primary-strong: #a3dc7c;
		--wp--preset--color--on-primary: #0e1418;
		--wp--preset--color--accent: #6fc3c9;
		--wp--preset--color--accent-2: #2b5a5f;
		--wp--preset--color--night: #0a1015;
		--wp--preset--color--border: #26333a;
		--bio7-contour: rgba(124, 199, 79, 0.10);
		--bio7-notice-bg: #2a2117;
		--bio7-notice-border: #d9822b;
		color-scheme: dark;
	}
}

:root {
	--bio7-contour: rgba(31, 79, 20, 0.09);
	--bio7-notice-bg: #fff6ec;
	--bio7-notice-border: #d9822b;
	--bio7-radius: 14px;
	--bio7-shadow: 0 1px 2px rgba(15, 27, 40, 0.06), 0 10px 30px rgba(15, 27, 40, 0.10);
	--bio7-shadow-deep: 0 2px 6px rgba(15, 27, 40, 0.10), 0 30px 70px rgba(15, 27, 40, 0.28);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.2s ease, color 0.2s ease;
}

::selection {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--heading);
}

:where(a:focus-visible, button:focus-visible, input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Inline code */
:where(p, li, td, figcaption) code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.88em;
	padding: 0.12em 0.4em;
	border-radius: 6px;
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
}

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 70%, transparent);
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

.bio7-header {
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
}

.bio7-brand {
	gap: 0.6rem;
}

.bio7-brand .wp-block-site-logo img {
	width: 38px;
	height: auto;
	display: block;
}

.bio7-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.35rem 0.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.82rem;
}

.bio7-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.bio7-header .wp-block-navigation .wp-block-navigation-item__content[aria-current] {
	color: var(--wp--preset--color--primary);
}

.bio7-header .wp-block-navigation__submenu-container {
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border) !important;
	background: var(--wp--preset--color--surface) !important;
	box-shadow: var(--bio7-shadow);
	padding: 0.35rem 0;
}

.bio7-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.bio7-header__actions {
	gap: 0.6rem;
}

.bio7-header-cta .wp-block-button__link {
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
}

@media (max-width: 640px) {
	.bio7-header-cta {
		display: none;
	}
}

/* The light/dark switch */
.bio7-scheme-toggle {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.bio7-scheme-toggle:hover {
	border-color: var(--wp--preset--color--primary);
	transform: rotate(-12deg);
}

.bio7-scheme-toggle svg {
	width: 18px;
	height: 18px;
	grid-area: 1 / 1;
}

.bio7-scheme-toggle .bio7-icon-sun {
	display: none;
}

html[data-theme="dark"] .bio7-scheme-toggle .bio7-icon-sun {
	display: block;
}

html[data-theme="dark"] .bio7-scheme-toggle .bio7-icon-moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bio7-scheme-toggle .bio7-icon-sun {
		display: block;
	}
	html:not([data-theme="light"]) .bio7-scheme-toggle .bio7-icon-moon {
		display: none;
	}
}

/* ---------- Sections ---------- */

/* Topographic contour lines (ecology) behind the hero and some sections */
.bio7-contours {
	position: relative;
	isolation: isolate;
}

.bio7-contours::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--bio7-contour);
	-webkit-mask: url("../images/contours.svg") center top / 1600px auto repeat;
	mask: url("../images/contours.svg") center top / 1600px auto repeat;
	-webkit-mask-image: url("../images/contours.svg"), linear-gradient(#000 40%, transparent);
	mask-image: url("../images/contours.svg"), linear-gradient(#000 40%, transparent);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.bio7-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	position: relative;
}

/* A soft curved line between the sections */
.bio7-section + .bio7-section::after,
.bio7-curve-top::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 36px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 1 Q720 70 1440 1' fill='none' stroke='%2393a08f' stroke-opacity='.45' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
	pointer-events: none;
}

.bio7-section--soft {
	background: var(--wp--preset--color--base-2);
}

.bio7-section-title {
	color: var(--wp--preset--color--primary-strong);
	text-align: center;
	font-weight: 800;
	letter-spacing: -0.02em;
}

html[data-theme="dark"] .bio7-section-title {
	color: var(--wp--preset--color--primary);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bio7-section-title {
		color: var(--wp--preset--color--primary);
	}
}

.bio7-section-lead {
	text-align: center;
	color: var(--wp--preset--color--contrast-2);
	max-width: 620px;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.bio7-hero {
	padding-top: clamp(3rem, 8vw, 6rem);
	padding-bottom: var(--wp--preset--spacing--60);
	text-align: center;
}

.bio7-eyebrow {
	display: inline-block;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary-strong);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
	width: fit-content;
}

.bio7-eyebrow a {
	color: inherit;
	text-decoration: none;
}

html[data-theme="dark"] .bio7-eyebrow {
	color: var(--wp--preset--color--primary);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bio7-eyebrow {
		color: var(--wp--preset--color--primary);
	}
}

.bio7-hero__title {
	font-weight: 300 !important;
	font-size: clamp(2.3rem, 5.6vw, 4.2rem) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.035em !important;
	max-width: 960px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.bio7-hero__title strong {
	font-weight: 700;
	background: linear-gradient(120deg, #5aa531, #2f7a1a 45%, #1f5e6e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bio7-hero__lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--wp--preset--color--contrast-2);
	max-width: 680px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.bio7-hero__platforms {
	font-size: 0.85rem;
	color: var(--wp--preset--color--contrast-2);
}

.bio7-hero .wp-block-buttons {
	gap: 0.75rem;
}

/* Download buttons with the system in a second line */
.bio7-os .wp-block-button__link {
	border-radius: 12px;
	padding: 0.75rem 1.3rem;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bio7-os .wp-block-button__link:hover {
	transform: translateY(-2px);
}

.bio7-os .wp-block-button__link small {
	display: block;
	font-weight: 400;
	font-size: 0.75rem;
	opacity: 0.85;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--heading);
	border-radius: 12px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
}

/* ---------- Screenshots ---------- */
.is-style-bio7-frame img,
.wp-block-post-featured-image.is-style-bio7-frame img {
	border-radius: var(--bio7-radius);
	box-shadow: var(--bio7-shadow-deep);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 60%, transparent);
}

.is-style-bio7-frame figcaption {
	text-align: center;
	margin-top: 1rem;
}

/* The light/dark comparison: two pictures, a slider (assets/js/compare.js) */
.bio7-compare {
	position: relative;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.bio7-compare > figure {
	margin: 0 !important;
}

.bio7-compare img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--bio7-radius);
}

.bio7-compare.is-ready {
	border-radius: var(--bio7-radius);
	box-shadow: var(--bio7-shadow-deep);
	overflow: hidden;
	--pos: 50%;
}

.bio7-compare.is-ready > figure:nth-of-type(2) {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--pos));
}

.bio7-compare:not(.is-ready) > figure:nth-of-type(2) {
	display: none;
}

.bio7-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

.bio7-compare__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2833' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bio7-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}

.bio7-compare__label {
	position: absolute;
	bottom: 14px;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: rgba(15, 20, 24, 0.7);
	color: #fff;
	pointer-events: none;
}

.bio7-compare__label--a {
	left: 14px;
}

.bio7-compare__label--b {
	right: 14px;
}

/* ---------- Tabs (assets/js/tabs.js; without JavaScript all panels are shown) ---------- */
.bio7-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 0 auto var(--wp--preset--spacing--50);
	padding: 0.35rem;
	width: fit-content;
	max-width: 100%;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}

.bio7-tabs__tab {
	border: 0;
	border-radius: 999px;
	padding: 0.5rem 1.05rem;
	background: transparent;
	color: var(--wp--preset--color--contrast-2);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bio7-tabs__tab:hover {
	color: var(--wp--preset--color--heading);
}

.bio7-tabs__tab[aria-selected="true"] {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}

.bio7-tabs.is-ready .bio7-tab[hidden] {
	display: none !important;
}

.bio7-tabs.is-ready .bio7-tab {
	animation: bio7-fade 0.35s ease;
}

.bio7-tabs:not(.is-ready) .bio7-tab + .bio7-tab {
	margin-top: var(--wp--preset--spacing--60);
}

@keyframes bio7-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.bio7-tab .wp-block-heading {
	margin-top: 0;
}

.bio7-tab .bio7-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.35rem;
}

/* ---------- Cards and badges ---------- */
.is-style-bio7-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--bio7-radius);
	padding: 1.5rem 1.5rem 1.35rem;
	box-shadow: 0 1px 2px rgba(15, 27, 40, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	height: 100%;
}

.is-style-bio7-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bio7-shadow);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
}

.is-style-bio7-card > * {
	margin-block: 0;
}

.is-style-bio7-card > * + * {
	margin-block-start: 0.6rem;
}

.is-style-bio7-card .wp-block-heading {
	font-size: 1.15rem;
}

.is-style-bio7-card p {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.97rem;
}

.bio7-badge {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6rem;
	border-radius: 12px;
	width: fit-content;
	font-weight: 800;
	font-size: 0.9rem;
	letter-spacing: -0.01em;
	color: #fff;
	background: linear-gradient(135deg, #5aa531, #1f4f14);
}

.bio7-badge--teal {
	background: linear-gradient(135deg, #2c8a9c, #12424e);
}

.bio7-badge--blue {
	background: linear-gradient(135deg, #3f7fd6, #1b3e7a);
}

.bio7-badge--amber {
	background: linear-gradient(135deg, #e0a330, #9a5a0e);
}

.bio7-badge--violet {
	background: linear-gradient(135deg, #8a6ad8, #47308c);
}

.bio7-badge--rose {
	background: linear-gradient(135deg, #d8607a, #8a2440);
}

/* Language strip (R, Python, Java, ImageJ, JavaScript) */
.bio7-langs {
	gap: 0.6rem !important;
}

.bio7-langs > p {
	margin: 0 !important;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--wp--preset--color--heading);
}

/* Numbers */
.bio7-stat {
	text-align: center;
}

.bio7-stat .bio7-stat__value {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--primary);
	margin: 0;
}

.bio7-stat .bio7-stat__label {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.92rem;
	margin-top: 0.4rem;
}

/* ---------- Gallery ---------- */
.wp-block-gallery.is-style-bio7-gallery img,
.bio7-gallery img {
	border-radius: 10px;
	box-shadow: var(--bio7-shadow);
	transition: transform 0.2s ease;
}

.bio7-gallery .wp-block-image:hover img {
	transform: scale(1.02);
}

.bio7-gallery figcaption {
	background: none !important;
	color: var(--wp--preset--color--contrast-2) !important;
	position: static !important;
	padding: 0.6rem 0 0 !important;
	font-size: 0.85rem !important;
	text-align: center;
	text-shadow: none !important;
	max-height: none !important;
}

.bio7-gallery .wp-block-image::before,
.bio7-gallery figure.wp-block-image:has(figcaption)::before {
	display: none !important;
}

/* ---------- Download ---------- */
.bio7-download {
	background: linear-gradient(135deg, #0f1b28 0%, #173a4a 55%, #1f5e6e 100%);
	color: #e3ecef;
	border-radius: 22px;
	padding: clamp(2rem, 5vw, 3.5rem);
	overflow: hidden;
	position: relative;
	isolation: isolate;
}

.bio7-download::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(159, 227, 214, 0.08);
	-webkit-mask: url("../images/contours.svg") center / 1200px auto repeat;
	mask: url("../images/contours.svg") center / 1200px auto repeat;
}

.bio7-download .wp-block-heading {
	color: #fff;
}

.bio7-download p {
	color: #c9dbe0;
}

.bio7-download a:not(.wp-block-button__link) {
	color: #9fe3d6;
}

.bio7-download .is-style-bio7-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: #e3ecef;
}

.bio7-download .is-style-bio7-card:hover {
	border-color: rgba(159, 227, 214, 0.5);
}

.bio7-download .is-style-bio7-card p {
	color: #b9cdd3;
}

.bio7-download .wp-block-button__link {
	background: #7cc74f;
	color: #0e1418;
}

.bio7-download .wp-block-button__link:hover {
	background: #a3dc7c;
	color: #0e1418;
}

.bio7-download code {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
	color: #e3ecef;
}

/* ---------- Notice, tables, details ---------- */
.is-style-bio7-notice {
	background: var(--bio7-notice-bg);
	border-left: 5px solid var(--bio7-notice-border);
	border-radius: 0 12px 12px 0;
	padding: 1rem 1.25rem;
}

.is-style-bio7-notice > * {
	margin-block: 0.25rem;
}

.wp-block-table.is-style-bio7-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 0.95rem;
}

.wp-block-table.is-style-bio7-table th,
.wp-block-table.is-style-bio7-table td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.7rem 0.9rem;
	text-align: left;
}

.wp-block-table.is-style-bio7-table thead th {
	background: var(--wp--preset--color--night);
	color: #fff;
	font-weight: 600;
}

.wp-block-table.is-style-bio7-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.is-style-bio7-table tbody tr:nth-child(even) td {
	background: var(--wp--preset--color--base-2);
}

.wp-block-details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 0.8rem 1.1rem;
	background: var(--wp--preset--color--surface);
}

.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

.bio7-download .wp-block-details {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
}

ul.is-style-bio7-check {
	list-style: none;
	padding-left: 0;
}

ul.is-style-bio7-check li {
	position: relative;
	padding-left: 1.8rem;
	margin-bottom: 0.45rem;
}

ul.is-style-bio7-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Blog ---------- */
.bio7-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--bio7-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bio7-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bio7-shadow);
}

.bio7-post-card .wp-block-post-featured-image {
	margin: 0 !important;
}

.bio7-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.bio7-post-card__body {
	padding: 1.25rem 1.35rem 1.4rem;
}

.bio7-post-card__body > * {
	margin-block: 0;
}

.bio7-post-card__body > * + * {
	margin-block-start: 0.55rem;
}

.bio7-post-card .wp-block-post-title {
	font-size: 1.2rem;
}

.bio7-post-card .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.95rem;
}

.bio7-post-card .wp-block-post-terms a {
	text-decoration: none;
	color: var(--wp--preset--color--accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
}

.wp-block-post-excerpt__more-link {
	font-weight: 600;
	text-decoration: none;
}

.bio7-sidebar {
	position: sticky;
	top: 90px;
}

.bio7-sidebar .wp-block-latest-posts li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.bio7-sidebar .wp-block-latest-posts a {
	text-decoration: none;
	color: var(--wp--preset--color--heading);
	font-weight: 500;
}

.bio7-sidebar .wp-block-latest-posts a:hover {
	color: var(--wp--preset--color--primary);
}

.bio7-sidebar .wp-block-latest-posts__post-date {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.8rem;
}

.bio7-sidebar .wp-block-heading {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-search__input {
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	padding: 0.55rem 0.8rem;
}

.wp-block-search__button {
	border-radius: 10px !important;
}

.wp-block-query-pagination {
	gap: 0.4rem;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.2rem;
	height: 2.2rem;
	border-radius: 8px;
	text-decoration: none;
}

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

.bio7-post-header {
	padding-top: var(--wp--preset--spacing--60);
}

.bio7-post-meta {
	gap: 0.4rem 1rem;
	color: var(--wp--preset--color--contrast-2);
}

/* Content: wider pictures in posts */
.wp-block-post-content .wp-block-image img {
	border-radius: 10px;
}

/* ---------- Footer ---------- */
.bio7-footer {
	margin-top: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--night);
	color: #b9c6cc;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.bio7-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(159, 227, 214, 0.05);
	-webkit-mask: url("../images/contours.svg") center / 1400px auto repeat;
	mask: url("../images/contours.svg") center / 1400px auto repeat;
}

.bio7-footer .wp-block-heading {
	color: #fff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.bio7-footer a {
	color: #dfe8ea;
	text-decoration: none;
}

.bio7-footer a:hover {
	color: #9fe3d6;
}

.bio7-footer .wp-block-site-title a {
	color: #fff;
}

.bio7-footer p {
	color: #9fb0b7;
}

.bio7-plain-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.bio7-plain-list li {
	margin: 0.35rem 0;
}

.bio7-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--50) !important;
	font-size: 0.85rem;
}

.bio7-footer__bottom p {
	margin: 0;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

.bio7-lead {
	color: var(--wp--preset--color--contrast-2);
	font-size: 1.1rem;
	margin-top: 0.4rem;
}

/* Badges keep their white text in cards */
.is-style-bio7-card .bio7-badge {
	color: #fff;
	font-size: 0.9rem;
}

/* Gallery: pictures of the same height */
.bio7-gallery .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: left top;
}

/* The gradient of the headline on dark backgrounds */
html[data-theme="dark"] .bio7-hero__title strong {
	background-image: linear-gradient(120deg, #a3dc7c, #7cc74f 45%, #6fc3c9);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bio7-hero__title strong {
		background-image: linear-gradient(120deg, #a3dc7c, #7cc74f 45%, #6fc3c9);
	}
}

/* Narrow screens */
@media (max-width: 781px) {
	.bio7-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.bio7-hero .wp-block-button__link {
		width: 100%;
	}
	.bio7-sidebar {
		position: static;
	}
}

@media (max-width: 781px) {
	.bio7-hero .wp-block-buttons > .wp-block-button {
		width: min(100%, 320px);
		align-self: center;
	}
	.wp-block-columns.bio7-stats {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 1rem;
	}
}
