/*
 * Centalion maintenance dashboard.
 * Brand: black leads, white for clarity, orange as the rare pop.
 * Display type: ABC Arizona Flare (licensed, woff2 files in
 * assets/fonts/, registered in functions.php); Fraunces is the fallback.
 * Fraunces and DM Sans are self-hosted (Latin subsets, SIL OFL): no requests
 * to Google, so visitors' IP addresses are not shared with a third party.
 */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces.woff") format("woff");
	font-weight: 300 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--cm-black: #14130E;
	--cm-surface: #1B1A14;
	--cm-ink: #F3F1EA;
	--cm-ink-2: #C9C5BA;
	--cm-ink-3: #A9A59A;
	--cm-line: rgba(255, 255, 255, 0.12);
	--cm-line-soft: rgba(255, 255, 255, 0.07);
	--cm-orange: #ED6200;
	--cm-g: #46C243;   /* Status green: vibrant grass green */
	--cm-a: #E3A72F;   /* Buoy yellow */
	--cm-r: #ED6200;   /* Centalion orange */
	--cm-n: #6E6B62;
	--cm-display: "ABC Arizona Flare", "Fraunces", Georgia, serif;
	--cm-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cm-radius: 10px;
}

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

body.cm-body {
	margin: 0;
	background-color: var(--cm-black);
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
	background-size: 24px 24px;
	color: var(--cm-ink);
	font: 400 14px/1.5 var(--cm-body);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--cm-ink); }
a:hover { color: var(--cm-orange); }
:focus-visible { outline: 2px solid var(--cm-orange); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	margin: -1px; padding: 0; border: 0;
	white-space: nowrap;
}
.cm-skip {
	position: absolute; left: -9999px; top: 8px;
	background: var(--cm-ink); color: var(--cm-black);
	padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.cm-skip:focus { left: 8px; }

.cm-wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 28px clamp(16px, 3.5vw, 48px) 48px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.cm-main { display: flex; flex-direction: column; gap: 28px; }

/* Header */
.cm-header {
	display: flex; flex-wrap: wrap;
	align-items: center; justify-content: space-between;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cm-line);
}
.cm-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cm-brand .custom-logo { display: block; height: 30px; width: auto; min-width: 120px; }
/* Logo: 30px tall ≈ 183px wide, above the 120px minimum. Clear space comes from the gap. */
.cm-logo { display: block; height: 30px; width: auto; }
.cm-brand-name { font: 400 22px/1 var(--cm-display); }
.cm-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.2); }
.cm-eyebrow {
	font-size: 12px; font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--cm-ink-2);
}
.cm-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-report-picker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cm-ink-2); }
.cm-report-picker select,
.cm-button {
	min-height: 44px;
	padding: 0 16px;
	background: var(--cm-surface);
	color: var(--cm-ink);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	font: 500 14px var(--cm-body);
	cursor: pointer;
	text-decoration: none;
	display: inline-flex; align-items: center;
}
.cm-button:hover { border-color: var(--cm-ink); color: var(--cm-ink); }
.cm-button--primary { background: var(--cm-orange); border-color: var(--cm-orange); color: var(--cm-black); font-weight: 700; }
.cm-pill {
	font-size: 13px; color: var(--cm-ink);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px; padding: 6px 12px;
}

/* Type */
.cm-display {
	margin: 0;
	font: 300 clamp(32px, 4vw, 46px)/1.05 var(--cm-display);
	letter-spacing: -0.01em;
	max-width: 820px;
}
.cm-accent { color: var(--cm-orange); }
.cm-lede { margin: 10px 0 0; color: var(--cm-ink-2); font-size: 16px; max-width: 820px; }
.cm-h2 { margin: 0; font: 400 24px/1.2 var(--cm-display); }
.cm-label {
	margin: 0;
	font-size: 12px; font-weight: 500;
	letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--cm-ink-3);
}
.cm-sub { display: block; font-size: 13px; color: var(--cm-ink-2); }
.cm-muted { color: var(--cm-ink-3); }
.cm-small { font-size: 13px; }
.cm-small.cm-muted { margin: 2px 0 0; }
.cm-text--a { color: var(--cm-a); }

/* Status dots */
.cm-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.cm-dot--sm { width: 8px; height: 8px; }
.cm-dot--g, .cm-bg--g { background: var(--cm-g); }
.cm-dot--a, .cm-bg--a { background: var(--cm-a); }
.cm-dot--r, .cm-bg--r { background: var(--cm-r); }
.cm-dot--r { border-radius: 2px; } /* shape, not only colour, marks red */
.cm-dot--n, .cm-bg--n { background: var(--cm-n); }

/* Summary tiles */
.cm-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--cm-line);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	overflow: hidden;
}
.cm-tile { background: var(--cm-surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.cm-figure { font: 300 44px/1.05 var(--cm-display); }
.cm-stack { display: flex; gap: 3px; height: 12px; margin: 18px 0 6px; }
.cm-stack-seg { border-radius: 2px; }

/* Panels */
.cm-panel {
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 18px 22px;
	display: flex; flex-direction: column; gap: 14px;
	min-width: 0;
}
.cm-panel--flush { padding: 0; gap: 0; overflow: hidden; }
.cm-panel-head {
	display: flex; flex-wrap: wrap;
	justify-content: space-between; align-items: center;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--cm-line);
}
.cm-panel-head--plain { padding: 0; border: 0; align-items: baseline; }
.cm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--cm-ink-2); }
.cm-legend li { display: flex; align-items: center; gap: 8px; }
.cm-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cm-row > .cm-panel { flex: 1 1 520px; }
.cm-empty { align-items: flex-start; }

/* Status matrix */
.cm-scroll { overflow-x: auto; position: relative; } /* relative: keeps visually hidden labels inside the scroll box */
/* Fits the page on desktop; only phones and small tablets (under ~900px) scroll. */
.cm-matrix { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.cm-matrix th, .cm-matrix td {
	text-align: left; vertical-align: middle;
	padding: 12px 8px;
	border-bottom: 1px solid var(--cm-line-soft);
	font-size: 13px; font-weight: 400;
	line-height: 1.4;
}
.cm-matrix th:first-child, .cm-matrix td:first-child { padding-left: 22px; }
.cm-matrix th:last-child, .cm-matrix td:last-child { padding-right: 22px; }
.cm-matrix thead th {
	padding-top: 10px; padding-bottom: 10px;
	font-size: 11px; font-weight: 500;
	letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--cm-ink-3);
	border-bottom-color: var(--cm-line);
}
.cm-matrix tbody tr:last-child > * { border-bottom: 0; }

.cm-site-name { display: block; font-size: 14px; font-weight: 500; }
.cm-site-url { display: block; font-size: 12px; color: var(--cm-ink-3); }
.cm-envs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cm-env {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; color: var(--cm-ink-2);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px; padding: 1px 8px;
}
.cm-cell-in { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cm-cell-in .cm-dot { flex: none; transform: translateY(-1px); }
.cm-cell-in > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cm-site-name, .cm-site-url { overflow-wrap: anywhere; }
.cm-cell--g, .cm-cell--n { color: var(--cm-ink-2); }
.cm-cell--a, .cm-cell--r { color: var(--cm-ink); font-weight: 500; }

/* Needs attention */
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-issue {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid var(--cm-line-soft);
}
.cm-issue .cm-dot { margin-top: 6px; }
.cm-issue-title { display: block; font-weight: 500; }

/* Work */
.cm-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.cm-work h3 { margin-bottom: 8px; }
.cm-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.cm-focus { padding-top: 14px; border-top: 1px solid var(--cm-line-soft); }
.cm-focus p { margin: 6px 0 0; font-size: 13px; }

/* Uptime */
.cm-uptime { list-style: none; margin: 0; padding: 0; }
.cm-uptime-row {
	display: grid;
	grid-template-columns: minmax(150px, 230px) 72px minmax(0, 1fr) 96px;
	gap: 16px; align-items: center;
	padding: 10px 0;
	border-top: 1px solid var(--cm-line-soft);
}
.cm-uptime-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-uptime-pct { font-size: 13px; font-weight: 500; }
.cm-bars { display: flex; gap: 2px; height: 22px; min-width: 0; }
.cm-bar { flex: 1; min-width: 2px; border-radius: 1px; }
.cm-bar.cm-bg--g { background: #2F9A35; opacity: 1; } /* a step darker than the status green, so 90 bars don't glare */
.cm-uptime-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cm-ink-2); }
.cm-note { margin: 0; font-size: 13px; color: var(--cm-ink-2); }

@media (max-width: 720px) {
	.cm-uptime-row { grid-template-columns: minmax(0, 1fr) auto; }
	.cm-bars { grid-column: 1 / -1; order: 3; gap: 1px; }
	.cm-bar { min-width: 0; }
	.cm-uptime-status { display: none; }
}


/* View tabs */
.cm-brand-link { display: flex; align-items: center; text-decoration: none; }
.cm-tabs { display: flex; gap: 4px; padding: 3px; background: var(--cm-black); border: 1px solid var(--cm-line); border-radius: 8px; }
.cm-tabs a {
	min-height: 38px; padding: 0 14px;
	display: inline-flex; align-items: center; gap: 8px;
	border-radius: 6px;
	font-size: 13px; font-weight: 500;
	color: var(--cm-ink-2); text-decoration: none;
}
.cm-tabs a:hover { color: var(--cm-ink); }
.cm-tabs a[aria-current="page"] { background: var(--cm-ink); color: var(--cm-black); }
.cm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cm-g); }

/* Links in the matrix */
a.cm-site-name { text-decoration: none; }
a.cm-site-name:hover { color: var(--cm-orange); }
.cm-arrow { color: var(--cm-ink-3); }

/* Site detail */
.cm-back { font-size: 14px; text-decoration: none; color: var(--cm-ink-2); align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; margin-bottom: -16px; }
.cm-status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.cm-env-panel .cm-h2 { display: flex; align-items: center; gap: 10px; }
.cm-alert { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--cm-line); border-radius: 8px; background: rgba(237, 98, 0, 0.08); }
.cm-alert .cm-dot { margin-top: 6px; }
/* Separate outlined tiles, so a part-filled last row leaves no grey gap. */
.cm-checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
}
.cm-check { border: 1px solid var(--cm-line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cm-check-value { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.cm-check-value .cm-dot { transform: translateY(-1px); }
.cm-detail-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.cm-detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cm-facts { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-facts .cm-label { margin-top: 6px; }
.cm-detail-grid h3 { margin-bottom: 8px; }
.cm-mini { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.cm-mini th, .cm-mini td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--cm-line-soft); font-weight: 400; }
.cm-mini thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-ink-3); }
.cm-dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.cm-dl dt { color: var(--cm-ink-3); }
.cm-dl dd { margin: 0; }
.cm-text--r { color: var(--cm-r); font-weight: 500; }


/* Data date bar */
.cm-databar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 24px;
	padding: 14px 18px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	margin-top: -8px;
}
.cm-databar-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cm-databar-time { font-size: 15px; font-weight: 500; }
.cm-databar-time .cm-muted { font-weight: 400; font-size: 13px; }
.cm-databar-stale { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cm-a); }
.cm-site-stale { display: block; font-size: 12px; color: var(--cm-a); }


/* 1.3: security table, health panel, site cards */
.cm-matrix--compact { min-width: 820px; }
.cm-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.cm-total > * { font-weight: 700; color: var(--cm-ink); border-bottom: 0 !important; }
.cm-total th { color: var(--cm-ink-3); font-weight: 500; }
.cm-tile .cm-figure.cm-text--r, .cm-tile .cm-figure.cm-text--a { font-weight: 300; }

.cm-minitiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cm-minitile { border: 1px solid var(--cm-line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cm-minifigure { font: 300 28px/1.1 var(--cm-display); }
.cm-minifigure.cm-text--r, .cm-minifigure.cm-text--a { font-weight: 300; }

.cm-perf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cm-perf-row .cm-perf { flex: 2 1 320px; }
.cm-perf-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; }
.cm-perf-bar { flex: 1; min-width: 2px; background: rgba(243, 241, 234, 0.3); border-radius: 2px 2px 0 0; }
.cm-perf-bar--peak { background: var(--cm-a); }
.cm-perf-axis { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--cm-ink-3); }
.cm-perf-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.cm-psi { flex: 1 1 240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-psi-card, .cm-card { border: 1px solid var(--cm-line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cm-card h3 { margin: 0 0 2px; }
.cm-card .cm-alert { padding: 10px 12px; }
.cm-alert--a { background: rgba(227, 167, 47, 0.08); font-size: 13px; }
.cm-dl dd .cm-check-value { font-size: 13px; }
.cm-card p { margin: 0; }
.cm-facts { gap: 16px; }

.cm-vuln-box { border: 1px solid rgba(237, 98, 0, 0.45); border-radius: 8px; }
.cm-vuln-box .cm-mini { min-width: 620px; }
.cm-vuln-box .cm-mini th:first-child, .cm-vuln-box .cm-mini td:first-child { padding-left: 12px; }
.cm-vuln-box .cm-mini tbody tr:first-child { background: rgba(237, 98, 0, 0.06); }
.cm-mini--fixed { table-layout: fixed; }
.cm-mini td { vertical-align: top; overflow-wrap: anywhere; }

.cm-admins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cm-admins li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--cm-line-soft); font-size: 13px; }
.cm-admins li > span:last-child { grid-column: 1 / -1; }
.cm-admin-name { font-weight: 500; overflow-wrap: anywhere; }
.cm-tag { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-a); border: 1px solid rgba(227, 167, 47, 0.5); border-radius: 4px; padding: 0 5px; }


.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--cm-ink-2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 2px 9px; }
.cm-chip--off { color: var(--cm-a); }

.cm-load-more { align-self: flex-start; margin-top: 4px; }
.cm-list > li[hidden] { display: none; }
.cm-issue[tabindex="-1"]:focus { outline: none; }
a.cm-issue-title { text-decoration: none; }
a.cm-issue-title:hover { text-decoration: underline; color: var(--cm-ink); }
.cm-credit { margin: 4px 0 0; font-size: 11px; color: var(--cm-ink-3); line-height: 1.5; }
.cm-credit a { color: var(--cm-ink-2); }


/* Month-on-month */
.cm-compare-lede { margin: -4px 0 0; font-size: 16px; color: var(--cm-ink); }
.cm-deltas { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.cm-delta { border: 1px solid var(--cm-line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cm-delta-values { display: flex; align-items: baseline; gap: 8px; }
.cm-delta-before { font: 300 18px/1 var(--cm-display); color: var(--cm-ink-3); }
.cm-delta-arrow { color: var(--cm-ink-3); }
.cm-delta-change { font-size: 13px; color: var(--cm-ink-2); }
.cm-delta-change--g { color: var(--cm-g); }
.cm-delta-change--a { color: var(--cm-a); }
.cm-change-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; align-items: start; }
.cm-change-list h3 { margin-bottom: 8px; }
.cm-change { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.cm-change .cm-dot { margin-top: 5px; }
.cm-change-title { display: block; }
.cm-tick { color: var(--cm-g); font-weight: 700; width: 8px; line-height: 1.4; }
.cm-history { display: flex; flex-direction: column; gap: 8px; }
.cm-history-bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.cm-history-col { flex: 1; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.cm-history-bar { width: 100%; background: rgba(243, 241, 234, 0.22); border-radius: 3px 3px 0 0; }
.cm-history-col.is-current .cm-history-bar { background: var(--cm-ink); }
.cm-history-n { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cm-history-label { font-size: 12px; color: var(--cm-ink-3); }
.cm-history-col.is-current .cm-history-label { color: var(--cm-ink); font-weight: 500; }

/* ===== 1.5 polish ===== */

/* Rhythm: a little more air in panels, consistent heading scale. */
.cm-panel { padding: 22px 24px; gap: 16px; }
.cm-panel--flush { padding: 0; gap: 0; }
.cm-panel-head { padding: 20px 24px; }
.cm-panel-head--plain { padding: 0; }
.cm-h2 { font-size: 26px; letter-spacing: -0.005em; }
.cm-h3 { margin: 0; font: 400 19px/1.25 var(--cm-display); }
.cm-matrix th:first-child, .cm-matrix td:first-child { padding-left: 24px; }
.cm-matrix th:last-child, .cm-matrix td:last-child { padding-right: 24px; }
.cm-panel, .cm-tiles, .cm-databar { scroll-margin-top: 84px; }
[id^="sec-"] { scroll-margin-top: 84px; }

/* Hero and data line */
.cm-hero { padding: 8px 0 0; }
.cm-display { font-size: clamp(34px, 4.4vw, 52px); max-width: 900px; }
.cm-lede { font-size: 17px; }
.cm-lede a { color: var(--cm-ink); text-underline-offset: 3px; }
.cm-lede--lead { margin-top: 0; }
.cm-databar {
	margin-top: -12px;
	padding: 10px 0 0;
	background: none; border: 0; border-radius: 0;
}
.cm-databar-label {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-ink-3);
}
.cm-databar-time { font-size: 14px; }
.cm-live-dot--a { background: var(--cm-a); }
.cm-button--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.cm-button { transition: border-color .15s, color .15s, background-color .15s; }

/* Section navigation (built by dashboard.js) */
.cm-sectionnav {
	position: sticky; top: 0; z-index: 20;
	margin: -8px calc(-1 * clamp(16px, 3.5vw, 48px)) -12px;
	padding: 0 clamp(16px, 3.5vw, 48px);
	background: rgba(20, 19, 14, 0.86);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.cm-sectionnav.is-stuck { border-bottom-color: var(--cm-line); }
body.admin-bar .cm-sectionnav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cm-sectionnav { top: 0; } }
.cm-sectionnav ul {
	list-style: none; margin: 0 auto; padding: 0; max-width: 1344px;
	display: flex; gap: 2px;
	overflow-x: auto; scrollbar-width: none;
}
.cm-sectionnav ul::-webkit-scrollbar { display: none; }
.cm-sectionnav a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
	font-size: 13px; font-weight: 500; white-space: nowrap;
	color: var(--cm-ink-3); text-decoration: none;
	box-shadow: inset 0 -2px 0 transparent;
	transition: color .15s, box-shadow .15s;
}
.cm-sectionnav li:first-child a { padding-left: 0; }
.cm-sectionnav a:hover { color: var(--cm-ink); }
.cm-sectionnav a[aria-current] { color: var(--cm-ink); box-shadow: inset 0 -2px 0 var(--cm-orange); }

/* Summary tiles */
.cm-tile { padding: 22px 24px; gap: 8px; }
.cm-figure { font-size: 48px; }
.cm-tile .cm-sub { color: var(--cm-ink-2); }

/* Matrix: worst-status edge on each row, hover, env chips under the name */
.cm-mrow > th { box-shadow: inset 3px 0 0 transparent; }
.cm-mrow--g > th { box-shadow: inset 3px 0 0 var(--cm-g); }
.cm-mrow--a > th { box-shadow: inset 3px 0 0 var(--cm-a); }
.cm-mrow--r > th { box-shadow: inset 3px 0 0 var(--cm-r); }
.cm-matrix tbody tr { transition: background-color .12s; }
.cm-matrix tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.cm-matrix td, .cm-matrix th { vertical-align: top; }
.cm-matrix td { padding-top: 15px; }
.cm-matrix tbody th { padding-top: 13px; padding-bottom: 13px; }
.cm-env { font-size: 11px; padding: 0 7px; line-height: 18px; }

/* Charts in brand colours */
.cm-perf-bars { height: 80px; gap: 2px; }
.cm-history-n { color: var(--cm-ink-2); }
.cm-history-col.is-current .cm-history-n { color: var(--cm-ink); }

/* Site detail: long check values span two tiles instead of stretching the row */
.cm-checks { grid-auto-flow: dense; }
.cm-check--wide { grid-column: span 2; }
@media (max-width: 420px) { .cm-check--wide { grid-column: auto; } }

/* Uptime incidents */
.cm-incidents { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--cm-line); }
.cm-incidents-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cm-incidents-head .cm-small { margin: 0; }
.cm-incident {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 120px;
	gap: 16px; align-items: baseline;
	padding: 10px 0;
	border-top: 1px solid var(--cm-line-soft);
	font-size: 13px;
}
.cm-incident:first-child { border-top: 0; }
.cm-incident-when time { font-weight: 500; }
.cm-incident-what { display: contents; }
.cm-incident-name { font-weight: 500; overflow-wrap: anywhere; }
.cm-incident-what .cm-sub { font-size: 13px; }
.cm-incident-when .cm-sub { display: inline; margin-left: 6px; color: var(--cm-ink-3); }
.cm-incident-dur { justify-self: end; }
.cm-incident-dur { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cm-ink); }
.cm-incident-dur--live { color: var(--cm-r); font-weight: 700; }
.cm-incident-none { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--cm-ink-2); }
.cm-incident[tabindex="-1"]:focus { outline: none; }

/* Phones */
@media (max-width: 720px) {
	.cm-wrap { gap: 22px; padding-top: 18px; }
	.cm-main { gap: 22px; }
	.cm-header-actions { width: 100%; }
	.cm-header-actions .cm-tabs { flex: 1 1 100%; }
	.cm-tabs a { flex: 1; justify-content: center; }
	.cm-report-picker { flex: 1; }
	.cm-report-picker select { flex: 1; min-width: 0; }
	.cm-eyebrow, .cm-divider { display: none; }
	.cm-panel { padding: 18px 16px; }
	.cm-panel--flush { padding: 0; }
	.cm-panel-head { padding: 16px; }
	.cm-panel-head--plain { padding: 0; }
	.cm-matrix th:first-child, .cm-matrix td:first-child { padding-left: 16px; }
	.cm-h2 { font-size: 22px; }
	.cm-figure { font-size: 40px; }
	.cm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-tile { padding: 16px; }
	.cm-incident { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
	.cm-incident-when { grid-column: 1 / -1; color: var(--cm-ink-2); }
	.cm-incident-what { display: block; }
	.cm-incident-name { display: block; }
	.cm-incident-dur { grid-row: 2; grid-column: 2; }
	.cm-sectionnav { margin-top: -6px; }
	.cm-sectionnav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
	.cm-deltas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-delta { padding: 12px; }
	.cm-change-lists { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* Site detail: foldable environments */
.cm-env-panel .cm-panel-head { align-items: center; }
.cm-env-panel .cm-panel-head > div:first-child { margin-right: auto; }
.cm-env-summary { display: inline-flex; align-items: center; gap: 7px; color: var(--cm-ink-2); }
.cm-env-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 0 12px;
	background: none; color: var(--cm-ink-2);
	border: 1px solid var(--cm-line); border-radius: 6px;
	font: 500 13px var(--cm-body); cursor: pointer;
}
.cm-env-toggle:hover { color: var(--cm-ink); border-color: rgba(255, 255, 255, 0.3); }
.cm-env-chevron { transition: transform .2s; transform: rotate(180deg); }
.cm-env-panel.is-collapsed .cm-env-chevron { transform: rotate(0deg); }
.cm-env-panel[data-cm-fold] .cm-panel-head { cursor: pointer; }
.cm-env-body { display: flex; flex-direction: column; gap: 16px; }
.cm-env-panel.is-collapsed .cm-env-body { display: none; }
.cm-env-panel.is-collapsed { gap: 0; }
@media print {
	.cm-env-toggle { display: none !important; }
	.cm-env-panel.is-collapsed .cm-env-body { display: flex !important; }
}

/* Lock screen */
.cm-lock { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.cm-lock-card {
	width: 100%; max-width: 420px;
	display: flex; flex-direction: column; gap: 14px;
	padding: 36px 32px 28px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-line);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.cm-lock-card .cm-logo { height: 28px; align-self: flex-start; margin-bottom: 10px; }
.cm-lock-card .cm-eyebrow { margin: 0; font-size: 11px; color: var(--cm-ink-3); }
.cm-lock-title { margin: 0; font: 300 36px/1.1 var(--cm-display); }
.cm-lock-lede { margin: 0 0 6px; color: var(--cm-ink-2); }
.cm-lock-form { display: flex; flex-direction: column; gap: 8px; }
.cm-lock-field { display: flex; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; background: var(--cm-black); }
.cm-lock-field:focus-within { border-color: var(--cm-orange); box-shadow: 0 0 0 1px var(--cm-orange); }
.cm-lock-field input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; background: none; color: var(--cm-ink); font: 400 16px var(--cm-body); outline: none; }
.cm-lock-show { border: 0; background: none; color: var(--cm-ink-2); font: 500 13px var(--cm-body); padding: 0 14px; cursor: pointer; }
.cm-lock-show:hover { color: var(--cm-ink); }
.cm-lock-error { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--cm-ink); }
.cm-lock-submit { justify-content: center; min-height: 48px; margin-top: 6px; font-size: 15px; }
.cm-lock-note { margin: 2px 0 0; font-size: 12px; color: var(--cm-ink-3); }
.cm-lock-foot { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--cm-line-soft); font-size: 12px; color: var(--cm-ink-3); }
.cm-lock-foot a { color: var(--cm-ink-2); }
.cm-button--ghost { border-color: transparent; background: none; color: var(--cm-ink-2); }
.cm-button--ghost:hover { border-color: var(--cm-line); }

/* Footer */
.cm-footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	font-size: 12px; color: var(--cm-ink-3);
	border-top: 1px solid var(--cm-line);
	padding-top: 16px;
}

/* Print: white page, black type, colour kept for status. */
@media print {
	@page { size: A4 landscape; margin: 12mm; }
	:root {
		--cm-surface: #fff;
		--cm-ink: #14130E;
		--cm-ink-2: #3C3B35;
		--cm-ink-3: #5C5A52;
		--cm-line: #D9D6CC;
		--cm-line-soft: #E8E6DF;
		--cm-g: #2E8B32;
		--cm-a: #B4532A;
		--cm-r: #A8322D;
	}
	body.cm-body { background: #fff; color: var(--cm-ink); font-size: 11px; }
	.cm-header { background: #14130E; padding: 10px 14px; border-radius: 6px; border: 0; }
	.cm-header .cm-eyebrow, .cm-header .cm-muted, .cm-header .cm-pill, .cm-header .cm-brand-name { color: #F3F1EA; }
	.cm-header .cm-pill { border-color: rgba(255, 255, 255, 0.3); }
	.cm-divider { background: rgba(255, 255, 255, 0.3); }
	.cm-header-actions .cm-button, .cm-button--ghost, .cm-report-picker, .cm-skip, .cm-tabs, .cm-back, .cm-databar .cm-button, .cm-load-more, .cm-sectionnav { display: none !important; }
	.cm-perf-bar, .cm-history-bar { background: #BDB9AE; }
	.cm-history-col.is-current .cm-history-bar { background: #14130E; }
	.cm-perf-bar--peak { background: var(--cm-a); }
	.cm-incident, .cm-incidents-head { break-inside: avoid; }
	.cm-list > li[hidden] { display: flex !important; }
	.cm-list > li.cm-incident[hidden] { display: grid !important; }
	.cm-bar.cm-bg--g { background: var(--cm-g); }
	.cm-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.cm-tile { padding: 12px 14px; }
	.cm-incident { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 90px; padding: 5px 0; }
	.cm-databar { margin: 0; padding: 8px 12px; }
	.cm-wrap { padding: 0; gap: 16px; max-width: none; }
	.cm-main { gap: 16px; }
	.cm-display { font-size: 28px; }
	.cm-figure { font-size: 30px; }
	.cm-tiles, .cm-row > .cm-panel, .cm-matrix tr, .cm-uptime-row, .cm-deltas, .cm-history { break-inside: avoid; }
	.cm-history-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.cm-panel { padding: 12px 14px; }
	.cm-panel--flush { padding: 0; }
	.cm-panel-head { padding: 12px 14px; }
	.cm-scroll { overflow: visible; }
	.cm-matrix { min-width: 0; }
	.cm-matrix th, .cm-matrix td { padding: 6px; font-size: 10px; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
