/*
 * OptimizU base: tokens, reset, typography and shared components.
 * Loaded on every layout (public, auth, dashboard) and in the block editor.
 */

@font-face {
	font-family: "Inter";
	src: url("../fonts/InterVariable-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/SpaceGrotesk-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Brand (hue ~205°, harmonised with the logo #2980BB / #299AE6). */
	--navy-950: #0a1a2f;
	--navy-900: #0f2340;
	--navy-800: #163152;
	--navy-700: #1f4268;
	--brand-50: #eef6fc;
	--brand-100: #d6eaf8;
	--brand-200: #aed4f0;
	--brand-300: #7cc6f2;
	--brand-400: #299ae6;
	--brand-500: #2980bb;
	--brand-600: #1a6dab;
	--brand-700: #155a8e;
	--teal-500: #0d9488;
	--teal-50: #e6f6f4;

	/* Neutrals. */
	--ink: #0f1b2d;
	--text: #1e2a3b;
	--muted: #5b6b82;
	--subtle: #8a97aa;
	--line: #e3e8ef;
	--line-strong: #cfd7e2;
	--input-border: #7d8ca3;
	--surface: #ffffff;
	--surface-2: #f6f8fb;
	--surface-3: #eef2f7;

	/* Status. Text colours are AA on white and on their tint. */
	--critical: #c4262e;
	--critical-bg: #fdecec;
	--warning: #a35a00;
	--warning-bg: #fff4e0;
	--passed: #12795a;
	--passed-bg: #e5f5ee;
	--info: var(--brand-600);
	--info-bg: var(--brand-50);

	--font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 16px;
	--radius-xl: 22px;
	--shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
	--shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 4px 14px rgba(15, 27, 45, 0.06);
	--shadow-lg: 0 2px 6px rgba(15, 27, 45, 0.06), 0 18px 48px rgba(15, 27, 45, 0.12);
	--focus: 0 0 0 3px rgba(41, 128, 187, 0.45);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--surface);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

h2 {
	font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
}

h3 {
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}

h4 {
	font-size: 1.05rem;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--brand-600);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--brand-700);
}

:focus-visible {
	outline: 2px solid var(--brand-500);
	outline-offset: 2px;
}

button {
	font: inherit;
	color: inherit;
}

small,
.small {
	font-size: 0.875rem;
}

.muted {
	color: var(--muted);
}

.tnum,
table {
	font-variant-numeric: tabular-nums;
}

.lead {
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	color: var(--muted);
	max-width: 62ch;
}

.lead-sm {
	font-weight: 600;
	color: var(--ink);
}

.eyebrow {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-600);
}

.eyebrow--on-dark {
	color: var(--brand-300);
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--navy-950);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 780px;
}

.placeholder {
	padding: 0 0.25em;
	border-radius: 4px;
	background: var(--warning-bg);
	color: var(--warning);
	font-weight: 500;
}

.text-critical {
	color: var(--critical);
}

.text-warning {
	color: var(--warning);
}

.text-passed {
	color: var(--passed);
}

/* Icons. */
.icon {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon--xs {
	width: 14px;
	height: 14px;
}

.icon--sm {
	width: 16px;
	height: 16px;
}

.icon--lg {
	width: 28px;
	height: 28px;
}

/* Logo. */
.logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.logo__img,
.logo img {
	width: auto;
	height: 30px;
}

.logo--text {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--brand-500);
}

/* Buttons. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--brand-600);
	border-radius: var(--radius);
	background: var(--brand-600);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:hover {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff;
}

.btn:active {
	transform: translateY(1px);
}

.btn:focus-visible {
	outline: none;
	box-shadow: var(--focus);
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

.btn--secondary {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn--secondary:hover {
	background: var(--surface-2);
	border-color: var(--subtle);
	color: var(--ink);
}

.btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--ink);
}

.btn--ghost:hover {
	background: var(--surface-3);
	border-color: transparent;
	color: var(--ink);
}

.btn--danger {
	background: var(--surface);
	border-color: #f0b8bb;
	color: var(--critical);
}

.btn--danger:hover {
	background: var(--critical-bg);
	border-color: var(--critical);
	color: var(--critical);
}

.btn--on-dark {
	background: #fff;
	border-color: #fff;
	color: var(--navy-950);
}

.btn--on-dark:hover {
	background: var(--brand-50);
	border-color: var(--brand-50);
	color: var(--navy-950);
}

.btn--outline-on-dark {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

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

.btn--sm {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 0.875rem;
	border-radius: 8px;
}

.btn--lg {
	min-height: 52px;
	padding: 14px 24px;
	font-size: 1rem;
}

.btn--block {
	width: 100%;
}

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--surface-3);
	color: var(--ink);
}

.icon-btn--dark {
	color: #c9d6e6;
}

.icon-btn--dark:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.icon-btn__dot {
	position: absolute;
	top: 8px;
	right: 9px;
	width: 8px;
	height: 8px;
	border: 2px solid var(--surface);
	border-radius: 50%;
	background: var(--critical);
}

.link-sm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.link-sm:hover {
	text-decoration: underline;
}

/* Badges. */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: var(--surface-3);
	color: var(--muted);
}

.badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.badge--critical {
	background: var(--critical-bg);
	color: var(--critical);
}

.badge--warning {
	background: var(--warning-bg);
	color: var(--warning);
}

.badge--passed {
	background: var(--passed-bg);
	color: var(--passed);
}

.badge--info,
.badge--planned {
	background: var(--brand-50);
	color: var(--brand-700);
}

.badge--neutral {
	background: var(--surface-3);
	color: #46556b;
}

.badge--demo {
	background: #f3efff;
	color: #5b3fb5;
	border: 1px dashed #b9a8ec;
}

.badge--demo::before {
	display: none;
}

/* Delta. */
.delta {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.delta--good {
	color: var(--passed);
}

.delta--bad {
	color: var(--critical);
}

.delta--flat {
	color: var(--muted);
	font-weight: 500;
}

/* Score ring. */
.score {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--size, 64px);
	height: var(--size, 64px);
}

.score svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.score .track {
	fill: none;
	stroke: var(--surface-3);
}

.score .bar {
	fill: none;
	stroke: var(--passed);
	stroke-linecap: round;
}

.score--mid .bar {
	stroke: #d98200;
}

.score--bad .bar {
	stroke: var(--critical);
}

.score--none .bar {
	stroke: transparent;
}

.score__val {
	position: relative;
	font-family: var(--font-display);
	font-size: calc(var(--size, 64px) * 0.32);
	font-weight: 700;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

/* Meter. */
.meter-cell {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 110px;
}

.meter-cell .tnum {
	min-width: 2ch;
	font-weight: 600;
	color: var(--ink);
}

.meter {
	position: relative;
	flex: 1;
	height: 6px;
	min-width: 60px;
	border-radius: 999px;
	background: var(--surface-3);
	overflow: hidden;
}

.meter > span {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--passed);
}

.meter--mid > span {
	background: #d98200;
}

.meter--bad > span {
	background: var(--critical);
}

/* Cards. */
.card {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 18px 20px 0;
}

.card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.card__body {
	padding: 20px;
}

.card__note,
.card__foot-note {
	margin: 0;
	font-size: 0.8rem;
	color: var(--muted);
}

.card__foot-note {
	padding: 0 20px 18px;
}

.card--center {
	text-align: center;
}

/* Forms. */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
}

.label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.hint {
	margin: 0;
	font-size: 0.8rem;
	color: var(--muted);
}

.input,
.select,
.textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea {
	min-height: 120px;
	resize: vertical;
}

.select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
}

.input::placeholder,
.textarea::placeholder {
	color: var(--muted);
}

.input:hover,
.select:hover,
.textarea:hover {
	border-color: var(--subtle);
}

.input:focus,
.select:focus,
.textarea:focus {
	outline: none;
	border-color: var(--brand-500);
	box-shadow: var(--focus);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
	border-color: var(--critical);
}

.input--sm,
.select--sm {
	min-height: 36px;
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 0.875rem;
	border-radius: 8px;
}

.input--lg {
	min-height: 50px;
}

.field-error {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--critical);
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.925rem;
	cursor: pointer;
}

.check--top {
	align-items: flex-start;
}

.check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--brand-600);
}

.check--top input {
	margin-top: 3px;
}

.check--switch input {
	appearance: none;
	position: relative;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: var(--line-strong);
	cursor: pointer;
	transition: background-color 0.15s;
}

.check--switch input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s var(--ease);
}

.check--switch input:checked {
	background: var(--brand-600);
}

.check--switch input:checked::after {
	transform: translateX(16px);
}

.check--switch input:focus-visible {
	outline: none;
	box-shadow: var(--focus);
}

.hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.password-field {
	position: relative;
}

.password-field .input {
	padding-right: 72px;
}

.password-field__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--brand-600);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.password-field__toggle:hover {
	background: var(--brand-50);
}

/* Alerts. */
.alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 0.9rem;
	line-height: 1.5;
}

.alert p {
	margin: 0;
}

.alert .icon {
	margin-top: 1px;
}

.alert--critical {
	background: var(--critical-bg);
	border-color: #f5c6c8;
	color: #8f1b21;
}

.alert--warning {
	background: var(--warning-bg);
	border-color: #f3d9a8;
	color: #7a4300;
}

.alert--passed {
	background: var(--passed-bg);
	border-color: #b8e2cf;
	color: #0d5c44;
}

.alert--info {
	background: var(--brand-50);
	border-color: var(--brand-100);
	color: var(--brand-700);
}

/* Tables. */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.table th,
.table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

.table thead th {
	padding-top: 10px;
	padding-bottom: 10px;
	background: var(--surface-2);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.table tbody tr:hover {
	background: var(--surface-2);
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
	border-bottom: 0;
}

.table--compact th,
.table--compact td {
	padding: 9px 12px;
}

.table .num,
.table td.tnum,
.table th.tnum {
	text-align: right;
}

th button[data-sort] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	cursor: pointer;
}

th button[data-sort]:hover {
	color: var(--ink);
}

th button[data-sort] .icon {
	opacity: 0.5;
}

[aria-sort="ascending"] button,
[aria-sort="descending"] button {
	color: var(--ink);
}

[aria-sort="ascending"] button .icon,
[aria-sort="descending"] button .icon {
	opacity: 1;
}

[aria-sort="ascending"] button .icon {
	transform: rotate(180deg);
}

/* Charts (server-rendered SVG + HTML labels). */
.chart {
	position: relative;
	margin: 0;
	--chart-h: 240px;
	container-type: inline-size;
}

@container (max-width: 440px) {
	.chart__x span:nth-child(even):not(:last-child) {
		display: none;
	}
}

.chart__plot {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr;
	height: var(--chart-h);
}

.chart__y {
	position: relative;
	font-size: 0.72rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.chart__y span {
	position: absolute;
	right: 8px;
	transform: translateY(-50%);
	white-space: nowrap;
}

.chart__canvas {
	position: relative;
	min-width: 0;
	border-radius: 4px;
	cursor: crosshair;
}

.chart__canvas:focus-visible {
	outline: 2px solid var(--brand-500);
	outline-offset: 4px;
}

.chart__canvas svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.chart__grid {
	stroke: var(--line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.chart__line {
	fill: none;
	stroke-width: 2.25;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.chart__line--primary {
	stroke: var(--brand-500);
}

.chart__line--secondary {
	stroke: var(--teal-500);
}

.chart__line--compare {
	stroke: #9aa8bb;
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
}

.chart__line--critical {
	stroke: var(--critical);
}

.chart__line--warning {
	stroke: #d98200;
}

.chart__line--passed {
	stroke: var(--passed);
}

.chart__area {
	fill: var(--brand-500);
	opacity: 0.1;
}

.chart__area--secondary {
	fill: var(--teal-500);
}

.chart__guide {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--line-strong);
	pointer-events: none;
}

.chart__dot {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--brand-500);
	box-shadow: 0 0 0 1px var(--brand-500);
	pointer-events: none;
}

.chart__tip {
	position: absolute;
	top: 8px;
	z-index: 5;
	min-width: 140px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--navy-950);
	color: #fff;
	font-size: 0.78rem;
	line-height: 1.45;
	box-shadow: var(--shadow-lg);
	pointer-events: none;
	white-space: nowrap;
}

.chart__tip strong {
	display: block;
	margin-bottom: 2px;
	color: #c9d6e6;
	font-weight: 500;
}

.chart__tip-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.chart__tip-row b {
	font-variant-numeric: tabular-nums;
}

.chart__tip-key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.chart__tip-key::before {
	content: "";
	width: 8px;
	height: 3px;
	border-radius: 2px;
	background: var(--key, var(--brand-400));
}

.chart__x {
	position: relative;
	height: 22px;
	margin: 6px 0 0 44px;
	font-size: 0.72rem;
	color: var(--muted);
}

.chart__x span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
}

.chart__x span:first-child {
	transform: none;
}

.chart__x span:last-child {
	transform: translateX(-100%);
}

.chart__x span:first-child:last-child {
	transform: none;
}

/* Bars (HTML). */
.bars {
	display: flex;
	align-items: stretch;
	gap: 8px;
	height: 180px;
	margin: 0;
}

.bars__col {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.bars__track {
	position: relative;
	display: flex;
	flex: 1;
	align-items: flex-end;
	width: 100%;
	max-width: 44px;
}

.bars__bar {
	position: relative;
	width: 100%;
	min-height: 2px;
	border-radius: 6px 6px 2px 2px;
	background: var(--brand-200);
}

.bars__col.is-current .bars__bar {
	background: var(--brand-500);
}

.bars__val {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, -4px);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.bars__label {
	font-size: 0.72rem;
	color: var(--muted);
	white-space: nowrap;
}

/* Sparkline. */
.spark {
	display: block;
	width: 100%;
	height: 30px;
	overflow: visible;
}

.spark polyline {
	fill: none;
	stroke: var(--brand-500);
	stroke-width: 1.75;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.spark--secondary polyline {
	stroke: var(--teal-500);
}

.spark--critical polyline {
	stroke: var(--critical);
}

.spark--passed polyline {
	stroke: var(--passed);
}

.spark--warning polyline {
	stroke: #d98200;
}

/* Site initials (websites). */
.site-initial {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--brand-50);
	color: var(--brand-700);
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 700;
}

.avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--brand-600);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
}

.avatar--sm {
	width: 28px;
	height: 28px;
	font-size: 0.75rem;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--passed);
}

.status-dot--off {
	background: var(--subtle);
}

/* Empty states. */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 48px 24px;
	text-align: center;
	color: var(--muted);
}

.empty-state .icon {
	color: var(--brand-500);
}

.empty-state h2,
.empty-state h3 {
	margin: 4px 0 0;
	font-size: 1.2rem;
}

.empty-state p {
	max-width: 46ch;
	margin: 0 0 8px;
}

.empty-inline {
	margin: 0;
	padding: 20px;
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}

/* Native dialog. */
.modal {
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-lg);
}

.modal::backdrop {
	background: rgba(10, 26, 47, 0.55);
	backdrop-filter: blur(2px);
}

.modal[open] {
	animation: oz-pop 0.18s var(--ease);
}

@keyframes oz-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

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

.modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 0;
}

.modal__title {
	margin: 0;
	font-size: 1.2rem;
}

.modal__body {
	padding: 14px 20px 4px;
}

.modal__body p {
	color: var(--muted);
}

.modal__form {
	display: grid;
	gap: 14px;
}

.modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 20px 20px;
}

.form-result {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--passed);
}

.form-result:empty {
	display: none;
}

.admin-hint {
	padding: 12px 14px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--muted);
	font-size: 0.9rem;
}

/* Editor content. */
.entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: 1.6rem;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote {
	margin-left: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--brand-400);
	color: var(--ink);
	font-size: 1.1rem;
}

.entry-content code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--surface-3);
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.entry-content pre {
	padding: 16px;
	border-radius: var(--radius);
	background: var(--navy-950);
	color: #e6edf6;
	overflow-x: auto;
	font-size: 0.9rem;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.entry-content img {
	height: auto;
	border-radius: var(--radius);
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

.alignwide {
	max-width: 1080px;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-block-button__link {
	border-radius: var(--radius);
	background: var(--brand-600);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
