/*
Theme Name: BMET Galaxy
Theme URI: https://bmetgalaxy.com
Author: BMET Galaxy
Description: A theme for biomedical equipment technology education. Deep-space navy headers and a patient-monitor ECG sweep sit above clean, hospital-white reading pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bmet-galaxy
Tags: education, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--void: #081229;
	--void-2: #101f44;
	--void-3: #1a2c5c;
	--ward: #eef3f8;
	--paper: #ffffff;
	--ink: #12203a;
	--muted: #51617b;
	--line: #d5e0eb;

	--pulse: #12c9b8;
	--pulse-ink: #08756d;
	--pulse-tint: #e3f6f4;
	--nebula: #7b61ff;
	--nebula-ink: #5136d9;
	--nebula-tint: #ece8ff;
	--alarm: #ff5d73;
	--alarm-ink: #c52f47;
	--alarm-tint: #ffe9ec;

	--f-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-panel: 20px;
	--r-tile: 14px;
	--r-chip: 10px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ward);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nebula-ink);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--void);
}

:focus-visible {
	outline: 3px solid var(--nebula);
	outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.band :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible,
.readout:focus-visible {
	outline-color: #8fffee;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.1rem;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: var(--void);
	border-radius: var(--r-chip);
	font-weight: 600;
}

.wrap {
	width: min(1160px, 100% - 2.5rem);
	margin-inline: auto;
}

.wrap--narrow {
	width: min(980px, 100% - 2.5rem);
}

.icon {
	display: block;
	flex: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.35rem;
	border: 1.5px solid transparent;
	border-radius: var(--r-chip);
	font: 600 0.98rem/1.2 var(--f-display);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
	background: var(--pulse);
	color: #04201d;
}

.btn--primary:hover {
	background: #4be3d4;
	color: #04201d;
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.btn--dark,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	background: var(--void);
	color: #fff;
}

.btn--dark:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--void-3);
	color: #fff;
}

/* ==========================================================================
   Header: brand + tools on top, primary menu on an instrument strip below
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--void);
	color: #fff;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 60px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: #fff;
	text-decoration: none;
	flex: none;
}

.brand:hover {
	color: #fff;
}

.brand__mark {
	display: block;
	width: 38px;
	height: 38px;
}

.brand__img {
	display: block;
	max-height: 44px;
	width: auto;
}

.brand__name {
	font: 600 1.2rem/1 var(--f-display);
	letter-spacing: -0.01em;
}

.site-nav {
	background: var(--void-2);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu-item {
	position: relative;
}

.primary-nav a {
	display: block;
	padding: 0.7rem 0.75rem;
	color: #cdd8ee;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 transparent;
	transition: color 0.15s, box-shadow 0.15s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--pulse);
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--void-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0 0 12px 12px;
}

.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a:hover {
	box-shadow: none;
	background: rgba(255, 255, 255, 0.08);
}

/* Tools panel */
.tools {
	position: relative;
	margin-left: auto;
	flex: none;
}

.tools__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.95rem;
	border: 1.5px solid rgba(18, 201, 184, 0.55);
	border-radius: var(--r-chip);
	background: transparent;
	color: #bff7f1;
	font: 600 0.93rem/1 var(--f-display);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.tools__button .icon {
	width: 20px;
	height: 20px;
}

.tools__button:hover,
.tools__button[aria-expanded="true"] {
	background: rgba(18, 201, 184, 0.14);
	border-color: var(--pulse);
}

.tools__panel {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	z-index: 60;
	width: min(720px, calc(100vw - 2rem));
	padding: 1.1rem;
	background: #fff;
	color: var(--ink);
	border-radius: var(--r-panel);
	box-shadow: 0 30px 60px -20px rgba(8, 18, 41, 0.55);
}

.tools__panel[hidden] {
	display: none;
}

.tools__panel .search-form {
	margin-bottom: 1rem;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--r-chip);
	background: transparent;
	cursor: pointer;
	position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	margin-left: -10px;
	background: #fff;
	border-radius: 2px;
	content: "";
}

.nav-toggle__bars {
	top: 50%;
	margin-top: -1px;
}

.nav-toggle__bars::before {
	top: -6px;
	left: 0;
	margin-left: 0;
}

.nav-toggle__bars::after {
	top: 6px;
	left: 0;
	margin-left: 0;
}

@media (max-width: 1080px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		padding-block: 0.5rem 1rem;
	}

	.site-nav.is-open {
		display: block;
	}

	.primary-nav .menu {
		flex-direction: column;
	}

	.primary-nav a {
		padding: 0.8rem 0.25rem;
		box-shadow: none;
	}

	.primary-nav a:hover,
	.primary-nav .current-menu-item > a,
	.primary-nav .current_page_item > a {
		box-shadow: none;
		color: #8fffee;
	}

	.primary-nav .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 1rem;
		background: transparent;
		border: 0;
	}

	/* Let the tools panel span the screen instead of hanging off the button. */
	.tools {
		position: static;
	}

	.tools__panel {
		top: 100%;
		right: 1rem;
		left: 1rem;
		width: auto;
		margin-top: 0.5rem;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(9.5rem, 14vw, 12rem);
	color: #fff;
	background:
		radial-gradient(55% 80% at 80% 40%, rgba(123, 97, 255, 0.34), transparent 70%),
		radial-gradient(40% 60% at 8% 100%, rgba(18, 201, 184, 0.14), transparent 70%),
		linear-gradient(180deg, #081229 0%, #0c1a3b 100%);
}

.hero__stars,
.hero__ecg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 2rem;
}

.hero__title {
	margin: 0 0 1.25rem;
	font: 700 clamp(2.6rem, 5.6vw, 4.5rem)/1.04 var(--f-display);
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.hero__text {
	max-width: 46ch;
	margin: 0 0 2rem;
	color: #c3d0ea;
	font-size: 1.2rem;
	line-height: 1.6;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.hero__orbit {
	justify-self: end;
	width: min(100%, 440px);
}

.hero__orbit svg {
	display: block;
	width: 100%;
}

@media (max-width: 860px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__orbit {
		justify-self: center;
		width: min(70%, 300px);
	}
}

/* ==========================================================================
   Readouts (patient-monitor stat strip)
   ========================================================================== */
.readouts {
	position: relative;
	z-index: 2;
	margin-top: -4.75rem;
}

.readouts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.readout {
	--channel: var(--pulse);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 1.1rem 1.4rem 1.2rem;
	overflow: hidden;
	background: var(--void-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--r-tile);
	box-shadow: 0 22px 40px -22px rgba(8, 18, 41, 0.7);
	color: #c3d0ea;
	text-decoration: none;
	transition: border-color 0.15s;
}

.readout:hover {
	color: #c3d0ea;
	border-color: var(--channel);
}

.readout--teal {
	--channel: var(--pulse);
}

.readout--violet {
	--channel: #a597ff;
}

.readout--coral {
	--channel: var(--alarm);
}

.readout__label {
	font-size: 0.92rem;
	font-weight: 500;
}

.readout__value {
	color: var(--channel);
	font: 700 clamp(2.1rem, 4vw, 2.9rem)/1.1 var(--f-display);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.readout__trace {
	position: absolute;
	right: 1.1rem;
	bottom: 0.9rem;
	width: 96px;
	height: auto;
	color: var(--channel);
	opacity: 0.6;
}

@media (max-width: 760px) {
	.readouts__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--paper {
	background: var(--paper);
	border-block: 1px solid var(--line);
}

.section__head {
	max-width: 60ch;
	margin-bottom: 2rem;
}

.section__title {
	margin: 0 0 0.6rem;
	font: 700 clamp(1.7rem, 3.2vw, 2.4rem)/1.15 var(--f-display);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.section__lede {
	margin: 0;
	color: var(--muted);
}

/* Tools grids */
.launchpad,
.tools-list {
	display: grid;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.launchpad {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.tools-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
}

.launchpad a,
.tools-list a {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	color: var(--ink);
	font: 600 0.98rem/1.3 var(--f-display);
	text-decoration: none;
}

.launchpad a {
	padding: 1rem 1.1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	transition: border-color 0.15s;
}

.tools-list a {
	padding: 0.65rem 0.7rem;
	border-radius: 10px;
	font-size: 0.92rem;
}

.launchpad a:hover {
	border-color: var(--pulse);
	color: var(--ink);
}

.tools-list a:hover {
	background: var(--ward);
	color: var(--ink);
}

.launchpad .icon,
.tools-list .icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: var(--r-chip);
	background: var(--pulse-tint);
	color: var(--pulse-ink);
	transition: background-color 0.15s, color 0.15s;
}

.tools-list .icon {
	width: 36px;
	height: 36px;
	padding: 8px;
}

.launchpad a:hover .icon,
.tools-list a:hover .icon {
	background: var(--pulse);
	color: #04201d;
}

@media (max-width: 700px) {
	.tools-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 440px) {
	.tools-list {
		grid-template-columns: 1fr;
	}
}

/* Salary survey split */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.split__copy p {
	max-width: 60ch;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
	}
}

.params {
	padding: 1.6rem 1.7rem 1.4rem;
	background: var(--void);
	color: #fff;
	border: 8px solid var(--void-3);
	border-radius: var(--r-panel);
}

.params__title {
	margin: 0 0 0.9rem;
	color: #8ff0e6;
	font: 600 1rem/1.2 var(--f-display);
}

.params__list {
	margin: 0;
}

.params__list > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.15rem 1.5rem;
	padding: 0.75rem 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.params__list dt {
	font: 600 1rem/1.4 var(--f-display);
}

.params__list dd {
	margin: 0;
	color: #9fb4d8;
	font-size: 0.95rem;
}

.params__note {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 1rem 0 0;
	color: #c3d0ea;
	font-size: 0.93rem;
}

.params__note::before {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pulse);
	box-shadow: 0 0 0 4px rgba(18, 201, 184, 0.22);
	content: "";
}

/* Pillars */
.pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.pillar {
	--ch: var(--pulse);
	--ch-ink: var(--pulse-ink);
	--ch-tint: var(--pulse-tint);
	padding: 1.6rem 1.5rem 1.7rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-tile);
	box-shadow: inset 0 4px 0 var(--ch);
}

.pillar--violet {
	--ch: var(--nebula);
	--ch-ink: var(--nebula-ink);
	--ch-tint: var(--nebula-tint);
}

.pillar--coral {
	--ch: var(--alarm);
	--ch-ink: var(--alarm-ink);
	--ch-tint: var(--alarm-tint);
}

.pillar__icon {
	display: inline-flex;
	padding: 9px;
	margin-bottom: 0.9rem;
	border-radius: var(--r-chip);
	background: var(--ch-tint);
	color: var(--ch-ink);
}

.pillar__title {
	margin: 0 0 0.7rem;
	font: 600 1.3rem/1.2 var(--f-display);
}

.pillar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pillar li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.2rem;
}

.pillar li::before {
	position: absolute;
	top: 1.02em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ch);
	content: "";
}

.pillar a {
	color: var(--ink);
	text-decoration-color: var(--ch);
}

.pillar a:hover {
	color: var(--ch-ink);
}

@media (max-width: 900px) {
	.pillars {
		grid-template-columns: 1fr;
	}
}

/* Reference guides */
.guides {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.guide {
	display: flex;
	gap: 1.25rem;
	padding: 1.7rem;
	background: var(--ward);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
}

.guide__icon {
	flex: none;
	display: inline-flex;
	align-self: flex-start;
	padding: 14px;
	border-radius: 14px;
	background: var(--void);
	color: #8ff0e6;
}

.guide__icon .icon {
	width: 30px;
	height: 30px;
}

.guide__title {
	margin: 0 0 0.4rem;
	font: 600 1.3rem/1.25 var(--f-display);
}

.guide p {
	margin: 0 0 1rem;
	color: var(--muted);
}

.link-cta {
	color: var(--ink);
	font: 600 0.98rem/1.3 var(--f-display);
	text-decoration: none;
	border-bottom: 2px solid var(--pulse);
	padding-bottom: 2px;
}

.link-cta:hover {
	color: var(--pulse-ink);
}

@media (max-width: 860px) {
	.guides {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 440px) {
	.guide {
		flex-direction: column;
	}
}

/* Dark call-to-action band */
.band {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background: var(--void);
	color: #c3d0ea;
}

.band__rings {
	position: absolute;
	top: 50%;
	right: -60px;
	width: 420px;
	transform: translateY(-50%);
	pointer-events: none;
}

.band__grid {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.band__grid > div {
	max-width: 56ch;
}

.band__title {
	margin: 0 0 0.6rem;
	color: #fff;
	font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--f-display);
	letter-spacing: -0.015em;
}

.band p {
	margin: 0;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 5.5rem);
	color: #fff;
	background:
		radial-gradient(1.2px 1.2px at 12% 28%, rgba(255, 255, 255, 0.8), transparent),
		radial-gradient(1px 1px at 27% 72%, rgba(255, 255, 255, 0.6), transparent),
		radial-gradient(1.4px 1.4px at 41% 20%, rgba(255, 255, 255, 0.7), transparent),
		radial-gradient(1px 1px at 58% 64%, rgba(255, 255, 255, 0.5), transparent),
		radial-gradient(1.2px 1.2px at 73% 30%, rgba(255, 255, 255, 0.8), transparent),
		radial-gradient(1px 1px at 86% 76%, rgba(255, 255, 255, 0.6), transparent),
		radial-gradient(1.4px 1.4px at 94% 22%, rgba(255, 255, 255, 0.7), transparent),
		radial-gradient(50% 120% at 90% 0%, rgba(123, 97, 255, 0.28), transparent 70%),
		linear-gradient(180deg, #081229, #0c1a3b);
}

.page-hero__title {
	margin: 0;
	font: 700 clamp(2rem, 4.6vw, 3.2rem)/1.1 var(--f-display);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.page-hero__lede {
	max-width: 60ch;
	margin-top: 0.75rem;
	color: #c3d0ea;
}

.page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.25rem;
	margin: 0.9rem 0 0;
	color: #b4c3e2;
	font-size: 0.95rem;
}

.page-hero__meta a {
	color: #8fffee;
}

.page-body {
	padding-block: 2.5rem 4rem;
}

.page-body--paper {
	padding-top: 0;
}

.paper {
	position: relative;
	margin-top: -2.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: 0 24px 40px -28px rgba(8, 18, 41, 0.3);
}

.paper--flat {
	margin-top: 0;
}

.entry__image {
	margin: 0 0 1.75rem;
}

.entry__image img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

/* Reading text */
.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > h5 {
	max-width: 70ch;
}

.prose h2,
.prose h3,
.prose h4 {
	margin: 2rem 0 0.6rem;
	font-family: var(--f-display);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.prose h2 {
	font-size: 1.65rem;
}

.prose h3 {
	font-size: 1.3rem;
}

.prose h4 {
	font-size: 1.1rem;
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1rem;
}

.prose li {
	margin-bottom: 0.3rem;
}

.prose blockquote {
	margin: 1.5rem 0;
	padding: 0.4rem 0 0.4rem 1.25rem;
	border-left: 4px solid var(--pulse);
	color: var(--muted);
}

.prose code {
	padding: 0.1em 0.35em;
	border-radius: 5px;
	background: var(--ward);
	font-size: 0.92em;
}

.prose pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
	border-radius: 12px;
	background: var(--void);
	color: #e1ebff;
}

.prose pre code {
	padding: 0;
	background: none;
}

.prose table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.97rem;
}

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

@media (max-width: 700px) {
	.prose table {
		display: block;
		overflow-x: auto;
	}
}

.prose th,
.prose td {
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose th {
	background: #e8f0f7;
	font-family: var(--f-display);
	font-weight: 600;
}

.prose hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose img {
	border-radius: 10px;
}

.prose input[type="text"],
.prose input[type="email"],
.prose input[type="number"],
.prose input[type="search"],
.prose input[type="url"],
.prose select,
.prose textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form__field {
	max-width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1.5px solid #b8c7da;
	border-radius: var(--r-chip);
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.comment-form textarea {
	width: 100%;
}

.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.wp-block-image figcaption,
figcaption {
	color: var(--muted);
	font-size: 0.9rem;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 520px;
}

.search-form__field {
	flex: 1;
	min-width: 0;
}

.search-form__button {
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: var(--r-chip);
	background: var(--void);
	color: #fff;
	font: 600 0.95rem/1 var(--f-display);
	cursor: pointer;
}

.search-form__button:hover {
	background: var(--void-3);
}

/* Cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.4rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-tile);
	transition: border-color 0.15s;
}

.card:hover {
	border-color: var(--pulse);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.card__body {
	padding: 1.2rem 1.3rem 1.4rem;
}

.card__meta {
	margin: 0 0 0.35rem;
	color: var(--muted);
	font-size: 0.87rem;
}

.card__title {
	margin: 0 0 0.5rem;
	font: 600 1.15rem/1.3 var(--f-display);
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

.card__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.card__excerpt p {
	margin: 0;
	color: var(--muted);
	font-size: 0.97rem;
}

/* Pagination and post navigation */
.navigation {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
}

.pagination .nav-links {
	justify-content: center;
}

.page-numbers {
	min-width: 2.6rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--r-chip);
	background: #fff;
	color: var(--ink);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--void);
	border-color: var(--void);
	color: #fff;
}

a.page-numbers:hover {
	border-color: var(--pulse);
}

.post-navigation .nav-links a {
	color: var(--ink);
	font-weight: 600;
}

/* Comments */
.comments {
	padding-bottom: 4rem;
}

.comments__title {
	font: 600 1.4rem/1.2 var(--f-display);
}

.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 1.5rem;
	list-style: none;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-tile);
}

.comment-author .avatar {
	float: left;
	margin-right: 0.75rem;
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.85rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

/* Widgets */
.widget__title {
	margin: 0 0 0.6rem;
	color: #fff;
	font: 600 1rem/1.2 var(--f-display);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--void);
	color: #aebbd6;
}

.site-footer__pulse {
	display: block;
	width: 100%;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	padding: 2rem 0 2.5rem;
}

.site-footer__brand p {
	max-width: 34ch;
	margin: 0.9rem 0 0;
}

.site-footer__nav .menu {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #d7e1f5;
	text-decoration-color: rgba(18, 201, 184, 0.6);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .brand {
	text-decoration: none;
}

.site-footer__widgets .widget {
	margin-bottom: 1.5rem;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 1.25rem 0 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.93rem;
}

.site-footer__base p {
	margin: 0;
}

@media (max-width: 800px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
