/* ==========================================================================
   Anchor Theme
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Buttons, pills & chips
   5.  Header & navigation
   6.  Command palette
   7.  Home — hero, stats, cards, console, infrastructure, quotes, FAQ, CTA
   8.  Plans — pricing, calculator, add-ons
   9.  Blog — index, cards, pagination
   10. Single post — article, prose, author, related
   11. Pages — about, security, contact
   12. Footer
   13. Utility pages — 404, search, archive
   14. Editor / block content
   15. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--bg: #F5F7FA;
	--surface: #FFFFFF;
	--surface-2: #FAFBFD;
	--surface-3: #EDF0F5;
	--border: #E3E7EE;
	--border-strong: #CBD2DE;
	--text: #15181D;
	--text-2: #565C66;
	--text-3: #666D7A;
	--navy: #123E8C;
	--navy-hover: #0D2F6E;
	--on-navy: #FFFFFF;
	--navy-soft: #EAF0FB;
	--good: #1C8A55;
	--warn: #B0761B;
	--bad: #BF3B2E;
	--shadow: rgba(18, 25, 40, .07);
	--shadow-lg: rgba(18, 25, 40, .10);
	--chip: #FFFFFF;
	--ill-ink: #1B2430;

	--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Height of the WP admin bar when it is fixed over the page. Overridden
	   on body.admin-bar below; everything that sticks to the top offsets by
	   it so the header never slides underneath. */
	--admin-bar-h: 0px;

	--wrap: 1180px;
	--gutter: 24px;
	--radius-sm: 10px;
	--radius: 14px;
	--radius-lg: 18px;
	--radius-xl: 20px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0B0E13;
		--surface: #141922;
		--surface-2: #1A202B;
		--surface-3: #212936;
		--border: #242C39;
		--border-strong: #35404F;
		--text: #E9ECF1;
		--text-2: #A3ACB9;
		--text-3: #767F8C;
		--navy: #5C97F7;
		--navy-hover: #82B0FF;
		--on-navy: #08111F;
		--navy-soft: #16223A;
		--good: #3FBE7F;
		--warn: #E0A64A;
		--bad: #EE7264;
		--shadow: rgba(0, 0, 0, .5);
		--shadow-lg: rgba(0, 0, 0, .6);
		--chip: #EFF2F7;
		--ill-ink: #B9C7DC;
	}
}

/* Explicit choice always wins over the media query. */
html[data-theme="light"] {
	--bg: #F5F7FA;
	--surface: #FFFFFF;
	--surface-2: #FAFBFD;
	--surface-3: #EDF0F5;
	--border: #E3E7EE;
	--border-strong: #CBD2DE;
	--text: #15181D;
	--text-2: #565C66;
	--text-3: #666D7A;
	--navy: #123E8C;
	--navy-hover: #0D2F6E;
	--on-navy: #FFFFFF;
	--navy-soft: #EAF0FB;
	--good: #1C8A55;
	--warn: #B0761B;
	--bad: #BF3B2E;
	--shadow: rgba(18, 25, 40, .07);
	--shadow-lg: rgba(18, 25, 40, .10);
	--chip: #FFFFFF;
	--ill-ink: #1B2430;
}

html[data-theme="dark"] {
	--bg: #0B0E13;
	--surface: #141922;
	--surface-2: #1A202B;
	--surface-3: #212936;
	--border: #242C39;
	--border-strong: #35404F;
	--text: #E9ECF1;
	--text-2: #A3ACB9;
	--text-3: #767F8C;
	--navy: #5C97F7;
	--navy-hover: #82B0FF;
	--on-navy: #08111F;
	--navy-soft: #16223A;
	--good: #3FBE7F;
	--warn: #E0A64A;
	--bad: #EE7264;
	--shadow: rgba(0, 0, 0, .5);
	--shadow-lg: rgba(0, 0, 0, .6);
	--chip: #EFF2F7;
	--ill-ink: #B9C7DC;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	text-wrap: pretty;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
	margin: 0;
}

a {
	color: var(--navy);
	text-decoration: none;
}

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

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

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

input[type="range"] {
	accent-color: var(--navy);
}

::selection {
	background: var(--navy);
	color: var(--on-navy);
}

:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute;
	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;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--navy);
	color: var(--on-navy);
	padding: 12px 20px;
	border-radius: 0 0 var(--radius-sm) 0;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
	color: var(--on-navy);
}

@keyframes riseIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@keyframes softPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .35; }
}

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

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section {
	padding-top: 92px;
	padding-bottom: 92px;
}

.section--tight {
	padding-top: 72px;
	padding-bottom: 0;
}

.section--band {
	border-top: 1px solid var(--border);
	background: var(--surface-2);
}

.eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text-3);
}

.mono {
	font-family: var(--font-mono);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px;
	justify-content: space-between;
}

.section-head__narrow {
	max-width: 620px;
}

.section-head__wide {
	max-width: 600px;
}

.section--arrangement {
	padding-top: 92px;
	padding-bottom: 20px;
}

.section--infra {
	padding-top: 80px;
	padding-bottom: 80px;
}

.infra__title {
	font-size: clamp(1.7rem, 2.4vw, 2.15rem);
	line-height: 1.15;
	letter-spacing: -.028em;
	font-weight: 800;
}

.infra__lede {
	margin-top: 10px;
	font-size: 16.5px;
	color: var(--text-2);
}

.section-title {
	margin-top: 14px;
	font-size: clamp(2rem, 3.2vw, 2.7rem);
	line-height: 1.1;
	letter-spacing: -.03em;
	font-weight: 800;
}

.section-lede {
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-2);
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: 0 1px 2px var(--shadow);
}

.card--lift {
	transition: transform .2s ease, border-color .2s ease;
}

.card--lift:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
}

/* Masked SVG illustrations — recolor with --ill-ink so they work in both themes. */
.illus {
	background-color: var(--ill-ink);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* ==========================================================================
   4. Buttons, pills & chips
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15.5px;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn--primary {
	background: var(--navy);
	color: var(--on-navy);
}

.btn--primary:hover {
	background: var(--navy-hover);
	color: var(--on-navy);
	transform: translateY(-1px);
}

.btn--ghost {
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	padding: 14px 24px;
}

.btn--ghost:hover {
	color: var(--text);
	transform: translateY(-1px);
}

.btn--sm {
	font-size: 14.5px;
	padding: 11px 18px;
	border-radius: 11px;
}

.pill-group {
	display: inline-flex;
	gap: 5px;
	padding: 5px;
	background: var(--surface-3);
	border-radius: 12px;
}

.pill {
	font: 600 13.5px/1 var(--font-sans);
	padding: 9px 16px;
	border-radius: 9px;
	border: none;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.pill:hover {
	color: var(--text);
}

.pill.is-active {
	background: var(--surface);
	box-shadow: 0 1px 3px var(--shadow);
	color: var(--text);
}

.tag {
	font-size: 12.5px;
	font-weight: 600;
	background: var(--surface-3);
	color: var(--text-2);
	padding: 5px 11px;
	border-radius: 999px;
}

.tag--bad {
	background: color-mix(in srgb, var(--bad) 12%, transparent);
	color: var(--bad);
}

.kbd {
	font-family: var(--font-mono);
	font-size: 11.5px;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 2px 6px;
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */

/* Admin bar offsets, matching WordPress's own breakpoints: the bar is 32px
   wide-screen, 46px on tablet, and below 600px it turns position:absolute
   and scrolls away, so no offset is wanted there. */
body.admin-bar {
	--admin-bar-h: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-bar-h: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar {
		--admin-bar-h: 0px;
	}
}

.site-header {
	position: sticky;
	top: var(--admin-bar-h);
	z-index: 60;
	/* The header is a surface, not the page ground — white over the grey body
	   in light, slightly lifted in dark. Kept translucent so the blur still
	   reads as content scrolls beneath it. */
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 13px var(--gutter);
	display: flex;
	align-items: center;
	gap: 26px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: none;
	color: var(--text);
}

.brand:hover {
	opacity: .85;
	color: var(--text);
}

/* Bare navy glyph — no tile. The anchor silhouette carries itself, and the
   header keeps a single navy block (the Dashboard button). */
.brand__mark {
	display: grid;
	place-items: center;
	color: var(--navy);
	flex: none;
}

.brand__logo {
	width: auto;
	max-width: 200px;
	object-fit: contain;
	flex: none;
}

.brand__name {
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.main-nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	min-width: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	font: 600 14.5px/1 var(--font-sans);
	padding: 9px 13px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}

.main-nav a:hover {
	color: var(--text);
	background: var(--surface-3);
}

.main-nav .is-active > a,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-post-ancestor > a {
	background: var(--surface-3);
	color: var(--text);
}

.header-spacer {
	flex: 1;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.icon-btn {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	display: grid;
	place-items: center;
	cursor: pointer;
	flex: none;
	color: var(--text-2);
	transition: border-color .15s ease;
}

.icon-btn:hover {
	border-color: var(--border-strong);
	color: var(--text);
}

.search-trigger {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 36px;
	padding: 0 10px 0 11px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	cursor: pointer;
	color: var(--text-3);
	white-space: nowrap;
	transition: border-color .15s ease, color .15s ease;
}

.search-trigger:hover {
	border-color: var(--border-strong);
	color: var(--text-2);
}

.header-cta {
	font-size: 14.5px;
	font-weight: 600;
	background: var(--navy);
	color: var(--on-navy);
	padding: 10px 17px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: background .15s ease;
}

.header-cta:hover {
	background: var(--navy-hover);
	color: var(--on-navy);
}

/* Only exists for the mobile dropdown — the desktop header shows .header-cta. */
.main-nav .main-nav__signin {
	display: none;
}

.nav-toggle {
	display: none;
}

/* ==========================================================================
   6. Command palette
   ========================================================================== */

.palette {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: color-mix(in srgb, #05080D 62%, transparent);
	backdrop-filter: blur(3px);
	display: flex;
	justify-content: center;
	padding: 14vh 20px 20px;
}

.palette[hidden] {
	display: none;
}

.palette__panel {
	width: 100%;
	max-width: 600px;
	height: fit-content;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: 16px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
	overflow: hidden;
	animation: riseIn .16s ease both;
}

.palette__search {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 15px 17px;
	border-bottom: 1px solid var(--border);
	color: var(--text-3);
}

.palette__input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: var(--text);
}

.palette__esc {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-3);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 3px 7px;
	flex: none;
}

.palette__results {
	max-height: 52vh;
	overflow-y: auto;
	padding: 8px;
}

.palette__group {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--text-3);
	padding: 12px 14px 6px;
}

.palette__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	color: var(--text);
}

.palette__item.is-active {
	background: var(--surface-3);
}

.palette__label {
	flex: 1;
	min-width: 0;
	font-size: 14.5px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.palette__kind {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-3);
	flex: none;
}

.palette__kind--external {
	display: inline-flex;
	align-items: center;
}

.palette__kind--external svg {
	display: block;
}

.palette__item.is-active .palette__kind {
	color: var(--navy);
}

.palette__empty {
	padding: 34px 14px;
	text-align: center;
	font-size: 14px;
	color: var(--text-3);
}

.palette__empty code {
	font-family: var(--font-mono);
	color: var(--text-2);
}

.palette__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 11px 17px;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-3);
}

/* ==========================================================================
   7. Home
   ========================================================================== */

/* --- Hero --- */

.hero {
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(900px 420px at 78% -8%, var(--navy-soft), transparent 70%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 78px var(--gutter) 72px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
	gap: 56px;
	align-items: center;
}

.hero__copy {
	animation: riseIn .6s ease both;
}

.hero__flag {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
}

.hero__flag > span:last-child {
	white-space: nowrap;
}

.hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--good);
	flex: none;
	animation: softPulse 2.4s ease-in-out infinite;
}

.hero__flag-label {
	color: var(--text-2);
	font-weight: 500;
}

.hero__rule {
	flex: 1;
	max-width: 60px;
	height: 1px;
	background: var(--border-strong);
}

.hero__title {
	margin-top: 22px;
	font-size: clamp(2.7rem, 4.6vw, 4.05rem);
	line-height: 1.03;
	letter-spacing: -.035em;
	font-weight: 800;
}

.hero__lede {
	margin-top: 22px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 33em;
}

.hero__actions {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__facts {
	margin-top: 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
}

.hero__panels {
	animation: riseIn .7s .12s ease both;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

/* --- Attention panel --- */

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: 0 18px 44px -22px var(--shadow-lg);
	overflow: hidden;
}

.panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}

.panel__title {
	font-weight: 700;
	font-size: 14.5px;
}

.panel__count {
	font-family: var(--font-mono);
	font-size: 11.5px;
	background: var(--surface-3);
	color: var(--text-2);
	padding: 2px 8px;
	border-radius: 999px;
}

.panel__url {
	font-size: 12.5px;
	color: var(--text-3);
}

.panel__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}

.panel__row:last-child {
	border-bottom: none;
}

.panel__bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	background: var(--text-3);
}

.panel__bullet--navy { background: var(--navy); }
.panel__bullet--bad  { background: var(--bad); }
.panel__bullet--warn { background: var(--warn); }
.panel__bullet--good { background: var(--good); }

.panel__body {
	flex: 1;
	min-width: 0;
}

.panel__label {
	font-size: 14.5px;
	font-weight: 600;
}

.panel__meta {
	font-size: 12.5px;
	color: var(--text-3);
	margin-top: 2px;
}

.panel__action {
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
}

.panel__action--good {
	color: var(--good);
}

.panel__count--zero {
	color: var(--good);
}

.panel__subhead {
	padding: 12px 18px 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-3);
}

.panel__row--handled {
	padding-top: 11px;
	padding-bottom: 11px;
}

.panel__row--handled .panel__label {
	font-weight: 500;
}

.panel__time {
	flex: none;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-3);
}

.panel--glance {
	box-shadow: 0 18px 44px -26px var(--shadow-lg);
	padding: 16px 18px;
}

.glance__title {
	font-weight: 700;
	font-size: 14.5px;
	margin-bottom: 10px;
}

.glance__list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 12.5px;
}

.glance__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.glance__row span:first-child {
	color: var(--text-3);
}

/* --- Stat band --- */

.statband {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}

.statband__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 34px var(--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 26px;
}

/* A stat is a <div>, or — when it links somewhere or opens the CVE
   dialog — an <a>/<button> sharing the same box. */
.statband__stat {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: inherit;
	text-decoration: none;
}

/* Interactive stats get a hover pill; negative margin keeps the resting
   layout identical to the plain stats. */
.statband__stat--go {
	cursor: pointer;
	margin: -10px -14px;
	padding: 10px 14px;
	border-radius: var(--radius);
	transition: background .15s ease;
}

.statband__stat--go:hover,
.statband__stat--go:focus-visible {
	background: var(--navy-soft);
}

/* The icon annotates the number the way a currency symbol would:
   same line, same ink. */
.statband__icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--navy);
}

.statband__value {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -.02em;
	transition: color .15s ease;
}

/* Interactive stats advertise it: a quiet ↗ that inks up on hover. */
.statband__stat--go .statband__value::after {
	content: '↗';
	font-size: 15px;
	margin-left: -2px;
	color: var(--text-3);
	align-self: flex-start;
	transition: color .15s ease;
}

.statband__stat--go:hover .statband__value,
.statband__stat--go:focus-visible .statband__value {
	color: var(--navy);
}

.statband__stat--go:hover .statband__value::after,
.statband__stat--go:focus-visible .statband__value::after {
	color: var(--navy);
}

.statband__label {
	display: block;
	font-size: 13.5px;
	color: var(--text-3);
	margin-top: 5px;
}

/* --- Published CVE reports dialog --- */

.cve-modal {
	width: min(680px, calc(100vw - 2 * var(--gutter)));
	max-height: min(76vh, 720px);
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 30px 70px var(--shadow-lg);
	flex-direction: column;
}

.cve-modal[open] {
	display: flex;
}

.cve-modal::backdrop {
	background: color-mix(in srgb, #05080D 55%, transparent);
	backdrop-filter: blur(3px);
}

.cve-modal__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
}

.cve-modal__title {
	margin: 0;
	font-size: 17px;
	letter-spacing: -.01em;
}

.cve-modal__count {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
}

.cve-modal__close {
	margin-left: auto;
	align-self: center;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.cve-modal__close:hover {
	background: var(--surface-3);
	color: var(--text);
}

.cve-modal__list {
	margin: 0;
	padding: 8px;
	list-style: none;
	overflow-y: auto;
}

.cve-modal__item {
	display: flex;
	gap: 14px;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	color: inherit;
	text-decoration: none;
	transition: background .15s ease;
}

.cve-modal__item:hover {
	background: var(--surface-2);
}

.cve-modal__score {
	flex: 0 0 auto;
	align-self: flex-start;
	min-width: 44px;
	padding: 3px 8px;
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
}

.cve-modal__score--critical {
	background: color-mix(in srgb, var(--bad) 14%, transparent);
	color: var(--bad);
}

.cve-modal__score--high {
	background: color-mix(in srgb, var(--warn) 16%, transparent);
	color: var(--warn);
}

.cve-modal__score--medium,
.cve-modal__score--low {
	background: color-mix(in srgb, var(--good) 14%, transparent);
	color: var(--good);
}

.cve-modal__body {
	display: block;
	min-width: 0;
}

.cve-modal__name {
	display: block;
	font-size: 14px;
	line-height: 1.45;
}

.cve-modal__name strong {
	font-family: var(--font-mono);
	font-size: 12.5px;
	margin-right: 6px;
	color: var(--navy);
}

.cve-modal__meta {
	display: block;
	margin-top: 3px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-3);
}

.cve-modal__foot {
	display: flex;
	gap: 18px;
	padding: 14px 22px;
	border-top: 1px solid var(--border);
	font-size: 13px;
}

.cve-modal__foot a {
	color: var(--navy);
	text-decoration: none;
}

.cve-modal__foot a:hover {
	text-decoration: underline;
}

/* --- Arrangement cards --- */

.arrangement__grid {
	margin-top: 44px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 20px;
}

.feature-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.feature-card__art {
	height: 172px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	display: grid;
	place-items: center;
	padding: 22px;
}

.feature-card__art .illus {
	width: 100%;
	height: 126px;
}

.feature-card__body {
	padding: 22px 22px 26px;
}

.feature-card__title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.015em;
}

.feature-card__text {
	margin-top: 9px;
	font-size: 14.8px;
	line-height: 1.62;
	color: var(--text-2);
}

/* --- Console (dashboard preview) --- */

.console {
	position: relative; /* toast + dropdown anchor */
	margin-top: 30px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: 0 24px 60px -34px var(--shadow-lg);
	overflow: hidden;
}

.console__pane {
	position: relative; /* .fleet-dd positions against the pane */
}

.console__chrome {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-2);
}

.console__lights {
	display: flex;
	gap: 6px;
	flex: none;
}

.console__lights span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border-strong);
}

.console__url {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 4px 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.console__pane[hidden] {
	display: none;
}

.console__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}

.fleet-search {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface-2);
	font-size: 12.5px;
	color: var(--text-3);
	min-width: 150px;
	cursor: text;
}

.fleet-search:focus-within {
	border-color: var(--border-strong);
	color: var(--text-2);
}

.fleet-search input {
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	color: var(--text);
	width: 120px;
	padding: 0;
}

.fleet-search input::placeholder {
	color: var(--text-3);
	opacity: 1;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--navy-soft);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--text);
	white-space: nowrap;
}

.filter-chip__x {
	font-size: 10px;
	color: var(--text-3);
}

.filter-chip--add {
	border-style: dashed;
	background: transparent;
	color: var(--text-3);
	font-weight: 500;
}

/* Chips render as buttons once the demo boots. */
button.filter-chip {
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

button.filter-chip:hover {
	border-color: var(--navy);
}

button.filter-chip:hover .filter-chip__x {
	color: var(--bad);
}

button.filter-chip--add:hover {
	color: var(--navy);
}

.fleet-chips {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* --- + Filter dropdown --- */

.fleet-dd {
	position: absolute;
	z-index: 30;
	min-width: 240px;
	max-width: 280px;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 18px 44px var(--shadow-lg);
}

.fleet-dd__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 8px 11px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	font: inherit;
	font-size: 13px;
	text-align: left;
	color: var(--text);
	cursor: pointer;
}

.fleet-dd__opt:hover {
	background: var(--surface-2);
}

.fleet-dd__opt.is-current {
	background: var(--navy-soft);
}

.fleet-dd__badge {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-3);
	white-space: nowrap;
}

.fleet-dd__back {
	display: block;
	width: 100%;
	padding: 7px 11px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 12.5px;
	text-align: left;
	color: var(--text-3);
	cursor: pointer;
}

.fleet-dd__back:hover {
	color: var(--navy);
}

.fleet-dd__search {
	width: 100%;
	margin: 2px 0 6px;
	padding: 7px 11px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	font: inherit;
	font-size: 13px;
	color: var(--text);
	outline: none;
}

.fleet-dd__search:focus {
	border-color: var(--navy);
}

/* --- Row context menu --- */

.fleet-ctx {
	position: fixed;
	z-index: 90;
	min-width: 230px;
	padding: 5px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 18px 44px var(--shadow-lg);
}

.fleet-ctx__entry {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	font: inherit;
	font-size: 13px;
	text-align: left;
	color: var(--text);
	cursor: pointer;
}

.fleet-ctx__entry:hover {
	background: var(--surface-2);
}

/* --- Pinned rows + toast --- */

.fleet__row--pinned .fleet__name::after {
	content: '📌';
	font-size: 11px;
	margin-left: 7px;
}

.console-toast {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 40;
	padding: 9px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: 0 10px 30px var(--shadow-lg);
	font-size: 13px;
	color: var(--text);
	white-space: nowrap;
	transition: opacity .35s ease;
}

.console-toast.is-out {
	opacity: 0;
}

.fleet-count {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
}

.fleet__head,
.fleet__row {
	display: grid;
	grid-template-columns: minmax(200px, 2fr) 1.2fr .9fr .8fr;
	gap: 14px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--border);
	align-items: center;
}

.fleet__row[hidden] {
	display: none;
}

.fleet__empty {
	padding: 28px 18px;
	font-size: 13px;
	color: var(--text-3);
	text-align: center;
}

.fleet__empty[hidden] {
	display: none;
}

.fleet__head {
	padding: 11px 18px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--text-3);
}

.fleet__row {
	transition: background .15s ease;
}

.fleet__row:hover {
	background: var(--surface-2);
}

.fleet__row:last-child {
	border-bottom: none;
}

.fleet__site {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fleet__thumb {
	width: 34px;
	height: 26px;
	border-radius: 5px;
	background: var(--surface-3);
	border: 1px solid var(--border);
	flex: none;
}

.fleet__name {
	font-size: 14.5px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fleet__owner {
	font-size: 12.5px;
	color: var(--text-3);
}

.fleet__envs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fleet__env {
	font-size: 12px;
	font-weight: 600;
	background: var(--surface-3);
	color: var(--text-2);
	padding: 3px 10px;
	border-radius: 999px;
}

.fleet__core {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-2);
}

.fleet__visits {
	font-family: var(--font-mono);
	font-size: 12.5px;
	text-align: right;
}

.fleet__head span:last-child {
	text-align: right;
}

/* Security tab */

.threats {
	padding: 6px 0;
}

.threat {
	display: grid;
	grid-template-columns: 78px minmax(180px, 2fr) 1fr 108px;
	gap: 14px;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
}

.threat__sev {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: center;
	padding: 4px 0;
	border-radius: 999px;
	color: var(--text-2);
	background: var(--surface-3);
}

.threat__sev--critical {
	color: var(--bad);
	background: color-mix(in srgb, var(--bad) 12%, transparent);
}

.threat__sev--high {
	color: var(--warn);
	background: color-mix(in srgb, var(--warn) 15%, transparent);
}

.threat__name {
	font-size: 14.5px;
	font-weight: 600;
}

.threat__cve {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
	margin-top: 2px;
}

.threat__affected {
	font-size: 13.5px;
	color: var(--text-2);
}

.threat__status {
	font-size: 13px;
	font-weight: 600;
	color: var(--good);
	text-align: right;
}

.threats__note {
	padding: 16px 18px;
	font-size: 13.5px;
	color: var(--text-3);
}

/* Terminal tab */

.terminal {
	padding: 22px 20px;
	background: var(--surface-2);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.85;
	overflow-x: auto;
}

.terminal__comment { color: var(--text-3); }
.terminal__out     { color: var(--text-2); }
.terminal__ok      { color: var(--good); }
.terminal__dim     { color: var(--text-3); }

.terminal__cursor {
	display: inline-block;
	border-left: 7px solid var(--text);
	height: 1em;
	vertical-align: text-bottom;
	animation: softPulse 1.1s steps(1) infinite;
}

/* --- Infrastructure --- */

.infra__grid {
	margin-top: 34px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}

.infra-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	transition: transform .18s ease, border-color .18s ease;
}

.infra-card:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
}

.infra-card__chip {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: var(--chip);
	border: 1px solid var(--border);
	display: grid;
	place-items: center;
	flex: none;
}

.infra-card__chip img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.infra-card__kind {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
}

.infra-card__name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-top: 3px;
}

/* --- Quotes --- */

.quotes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.quote {
	padding: 30px 28px;
}

.quote__mark {
	font-size: 34px;
	line-height: 1;
	color: var(--navy);
	font-weight: 800;
}

.quote__text {
	margin: 12px 0 0;
	font-size: 18px;
	line-height: 1.55;
	letter-spacing: -.01em;
}

.quote__cite {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 11px;
}

.quote__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--surface-3);
	border: 1px solid var(--border);
	flex: none;
	object-fit: cover;
}

.quote__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.quote--cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	border-style: dashed;
	background: transparent;
	box-shadow: none;
}

.quote__cta-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.quote__cta-body {
	margin: 0;
	font-size: 14px;
	color: var(--text-3);
}

.quote__cta-actions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

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

.quote__name a:hover {
	text-decoration: underline;
}

.quote__role {
	display: block;
	font-size: 13px;
	color: var(--text-3);
}

/* --- FAQ (native details/summary, same accordion language as Minn Admin) --- */

.section--faq {
	padding-top: 92px;
	padding-bottom: 40px;
	scroll-margin-top: calc(96px + var(--admin-bar-h));
}

.faq {
	max-width: 840px;
	margin-top: 36px;
}

.faq__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 13px;
	margin-bottom: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px var(--shadow);
}

.faq__q {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 17px 20px;
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -.01em;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--navy);
	border-bottom: 2px solid var(--navy);
	transform: rotate(-45deg);
	transition: transform .18s ease;
	margin-left: 2px;
}

.faq__item[open] .faq__q::before {
	transform: rotate(45deg);
}

.faq__item[open] {
	border-color: var(--border-strong);
}

.faq__q:focus {
	outline: none;
}

.faq__q:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: -2px;
}

.faq__a {
	padding: 0 20px 17px 34px;
}

.faq__a p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--text-2);
}

.faq__a a {
	color: var(--navy);
}

.faq__a a:hover {
	color: var(--navy-hover);
}

.faq__a code {
	font-family: var(--font-mono);
	font-size: .88em;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 5px;
}

/* --- CTA --- */

.cta {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
}

.cta__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 74px var(--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 44px;
	align-items: center;
}

.cta__title {
	font-size: clamp(2rem, 3.1vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: -.03em;
	font-weight: 800;
}

.cta__text {
	margin-top: 14px;
	font-size: 17.5px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 30em;
}

.cta__actions {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cta__art {
	display: grid;
	place-items: center;
}

.cta__art .illus {
	width: 100%;
	max-width: 360px;
	aspect-ratio: 29 / 15;
}

/* ==========================================================================
   8. Plans
   ========================================================================== */

.plans-hero {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 72px var(--gutter) 0;
	text-align: center;
}

.plans-hero__title {
	font-size: clamp(2.4rem, 4vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -.035em;
	font-weight: 800;
}

.plans-hero__lede {
	margin: 18px auto 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 38em;
}

.plans-hero__cycles {
	margin-top: 30px;
}

.plans__grid {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 38px var(--gutter) 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
	gap: 16px;
	align-items: start;
}

.plan {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px 24px 24px;
	box-shadow: 0 1px 2px var(--shadow);
	display: flex;
	flex-direction: column;
}

.plan.is-featured {
	border-color: var(--navy);
	box-shadow: 0 18px 44px -28px var(--shadow-lg);
}

.plan__head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.plan__name {
	font-size: 17px;
	font-weight: 700;
}

.plan__badge {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--navy);
	color: var(--on-navy);
	padding: 3px 9px;
	border-radius: 999px;
}

.plan__pricing {
	margin-top: 16px;
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.plan__price {
	font-family: var(--font-mono);
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -.03em;
}

.plan__period {
	font-size: 13.5px;
	color: var(--text-3);
}

.plan__equiv {
	font-size: 12.5px;
	color: var(--text-3);
	margin-top: 4px;
	font-family: var(--font-mono);
}

.plan__features {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.plan__features li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14.5px;
	color: var(--text-2);
}

.check {
	flex: none;
	margin-top: 2px;
	color: var(--good);
}

.plan__cta {
	margin-top: 24px;
	font: 700 14.5px/1 var(--font-sans);
	padding: 12px 18px;
	border-radius: 11px;
	cursor: pointer;
	transition: background .15s ease;
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--text);
	text-align: center;
	display: block;
}

.plan__cta:hover {
	color: var(--text);
	border-color: var(--text-3);
}

.plan.is-featured .plan__cta {
	border: none;
	background: var(--navy);
	color: var(--on-navy);
}

.plan.is-featured .plan__cta:hover {
	background: var(--navy-hover);
	color: var(--on-navy);
}

/* --- Calculator --- */

.calc-section {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 60px var(--gutter) 0;
}

.calc {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: 0 1px 2px var(--shadow);
}

.calc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 36px;
}

.calc__title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.calc__text {
	margin-top: 8px;
	font-size: 14.8px;
	line-height: 1.6;
	color: var(--text-2);
}

.calc__controls {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

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

.calc__label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-2);
}

.calc__value {
	font-family: var(--font-mono);
	font-size: 14px;
}

.calc__range {
	width: 100%;
	margin-top: 8px;
}

.calc__summary {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.calc__summary-kicker {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.calc__plan {
	margin-top: 10px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.calc__lines {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 13px;
}

.calc__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--text-2);
}

.calc__total-row {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.calc__total-label {
	font-size: 14px;
	font-weight: 700;
}

.calc__total {
	font-family: var(--font-mono);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.calc__cycle-note {
	font-size: 12.5px;
	color: var(--text-3);
	margin-top: 4px;
	text-align: right;
}

/* --- Add-ons & includes --- */

.plans-extras {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 60px var(--gutter) 96px;
}

.plans-extras__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.extras-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px;
	min-width: 0;
}

.extras-card--wide {
	grid-column: span 2;
}

.extras-card__title {
	font-size: 17px;
	font-weight: 700;
}

.addons {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.addons__row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	font-size: 14.5px;
	color: var(--text-2);
}

.addons__price {
	font-family: var(--font-mono);
	color: var(--text);
}

.includes {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 11px;
}

.includes__item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	color: var(--text-2);
}

/* --- Plan builder (hosting plan calculator) --- */

.builder {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 10px var(--gutter) 96px;
}

.builder__step {
	margin-top: 54px;
}

.builder__step-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.builder__step-num {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--navy);
	color: var(--on-navy);
	font: 700 14px/30px var(--font-mono);
	text-align: center;
}

.builder__step-title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.builder__step-note {
	margin: 8px 0 0 44px;
	font-size: 14.8px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 46em;
}

.builder__plans {
	padding: 26px 0 0;
}

.plan--select {
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.plan--select:hover {
	border-color: var(--border-strong);
}

.plan--select:has(input:checked) {
	border-color: var(--navy);
	box-shadow: 0 18px 44px -28px var(--shadow-lg);
}

.plan--select:has(input:focus-visible) {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

.plan__pick {
	margin-top: 24px;
	font: 700 14.5px/1 var(--font-sans);
	padding: 12px 18px;
	border-radius: 11px;
	border: 1px solid var(--border-strong);
	text-align: center;
	color: var(--text);
}

.plan--select:has(input:checked) .plan__pick {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--on-navy);
}

.builder__extras {
	margin-top: 26px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.extra-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 22px;
	box-shadow: 0 1px 2px var(--shadow);
}

.extra-card__label {
	font-size: 15px;
	font-weight: 700;
}

.extra-card__rate {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
}

.stepper {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.stepper__btn {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--text);
	font: 600 18px/1 var(--font-mono);
	cursor: pointer;
	transition: background .15s ease;
}

.stepper__btn:hover {
	background: var(--surface-3);
}

.stepper__value {
	width: 72px;
	text-align: center;
	font: 600 16px/1.2 var(--font-mono);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 6px;
	color: var(--text);
	appearance: textfield;
	-moz-appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.extra-card__unit {
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--text-3);
}

.builder__summary-card {
	margin-top: 26px;
}

.builder__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 36px;
}

.builder__capacity {
	margin-top: 14px;
}

.builder__includes-title {
	margin-top: 26px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.builder__persite {
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
	text-align: right;
}

.builder__cta {
	margin-top: 20px;
	display: block;
	text-align: center;
	font: 700 14.5px/1 var(--font-sans);
	padding: 13px 18px;
	border-radius: 11px;
	background: var(--navy);
	color: var(--on-navy);
	transition: background .15s ease;
}

.builder__cta:hover {
	background: var(--navy-hover);
	color: var(--on-navy);
}

.builder__prose {
	margin: 54px auto 0;
	max-width: 680px;
}

.builder__footnote {
	margin-top: 44px;
	font-size: 13.5px;
	color: var(--text-3);
	text-align: center;
}

/* --- Brand page --- */

.brandkit {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 10px var(--gutter) 96px;
}

.brandkit__section {
	margin-top: 56px;
}

.brandkit__h {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.brandkit__sub {
	margin-top: 26px;
	font-size: 15px;
	font-weight: 700;
}

.brandkit__note {
	margin-top: 8px;
	font-size: 14.8px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 46em;
}

.brandkit__head-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.brandkit__zip {
	font: 700 14px/1 var(--font-sans);
	padding: 11px 16px;
	border-radius: 11px;
	background: var(--navy);
	color: var(--on-navy);
	transition: background .15s ease;
}

.brandkit__zip:hover {
	background: var(--navy-hover);
	color: var(--on-navy);
}

/* Preview stages depict an asset on its INTENDED background, so these
   backgrounds are deliberately fixed and do not flip with the scheme —
   the one place hardcoded colours are correct. */
.brandkit__stage-grid {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.brand-stage {
	border-radius: var(--radius-lg);
	display: grid;
	place-items: center;
	padding: 44px 28px;
	min-height: 180px;
}

.brand-stage--light {
	background: #F5F7FA;
	border: 1px solid #E3E7EE;
}

.brand-stage--navy {
	background: #123E8C;
}

.brand-stage__lockup {
	width: min(360px, 80%);
	height: auto;
}

.brand-stage__mark {
	width: 96px;
	height: 96px;
}

.brand-stage__mark--tile {
	border-radius: 22px;
	box-shadow: 0 10px 28px -14px rgba(18, 25, 40, .35);
}

.brandkit__dl-grid {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	align-items: start;
}

.dl-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: 0 1px 2px var(--shadow);
}

/* Checkerboard behind transparent assets. The previews show the LIGHT
   variants of each file, so like the stages above this stays fixed-light
   in both schemes — the artwork's ink strokes vanish on a dark board. */
.dl-card__preview {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background:
		repeating-conic-gradient(#EDF0F5 0% 25%, #FAFBFD 0% 50%)
		0 0 / 20px 20px;
	display: grid;
	place-items: center;
	padding: 22px;
	min-height: 110px;
}

.dl-card__preview img {
	max-width: 100%;
	max-height: 72px;
	width: auto;
	height: auto;
}

.dl-card__title {
	margin-top: 16px;
	font-size: 16px;
	font-weight: 700;
}

.dl-card__desc {
	margin-top: 5px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--text-2);
}

.dl-card__files {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
}

.dl-card__file {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text);
}

.dl-card__file:hover .dl-card__file-name {
	color: var(--navy);
}

.dl-card__file-kind {
	flex: none;
	color: var(--text-3);
}

.brandkit__swatches {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.swatch {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.swatch__chip {
	height: 56px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	margin-bottom: 8px;
}

.swatch__name {
	font-size: 14px;
	font-weight: 700;
}

.swatch__hex {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
}

.swatch__use {
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text-2);
}

.brandkit__type-grid {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.specimen {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px;
	box-shadow: 0 1px 2px var(--shadow);
}

.specimen__sample {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.specimen--mono .specimen__sample {
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: -.02em;
}

.specimen__name {
	margin-top: 18px;
	font-size: 15px;
	font-weight: 700;
}

.specimen__meta {
	margin-top: 4px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--text-2);
}

.specimen__weights {
	margin-top: 14px;
	display: flex;
	gap: 18px;
	font-size: 22px;
	color: var(--text-2);
}

.specimen--mono .specimen__weights {
	font-family: var(--font-mono);
}

.brandkit__usage-grid {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.usage-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.usage-card__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.usage-card__title--do {
	color: var(--good);
}

.usage-card__title--dont {
	color: var(--bad);
}

.usage-card__list {
	margin: 14px 0 0;
	padding: 0 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--text-2);
}

.brandkit__prose {
	margin: 56px auto 0;
	max-width: 680px;
}

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

/* ==========================================================================
   9. Blog
   ========================================================================== */

.blog-hero {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 66px var(--gutter) 0;
}

.blog-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.blog-hero__title {
	margin-top: 12px;
	font-size: clamp(2.3rem, 3.8vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	font-weight: 800;
}

.blog-hero__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 30em;
}

.featured-post {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 34px var(--gutter) 0;
}

.featured-post__card {
	display: block;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 1px 2px var(--shadow);
	transition: transform .2s ease, border-color .2s ease;
	color: inherit;
}

.featured-post__card:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
	color: inherit;
}

.featured-post__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.featured-post__thumb {
	min-height: 300px;
	background: var(--surface-3) center / cover no-repeat;
	border-bottom: 1px solid var(--border);
}

.featured-post__body {
	padding: 34px 34px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
}

.post-meta__tag {
	font-weight: 600;
	color: var(--navy);
}

.featured-post__title {
	margin-top: 14px;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	line-height: 1.14;
	letter-spacing: -.028em;
	font-weight: 800;
}

.featured-post__excerpt {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.62;
	color: var(--text-2);
}

.featured-post__more {
	margin-top: 20px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--navy);
}

.post-grid {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 24px var(--gutter) 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px var(--shadow);
	transition: transform .2s ease, border-color .2s ease;
	color: inherit;
}

.post-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
	color: inherit;
}

.post-card__thumb {
	height: 168px;
	background: var(--surface-3) center / cover no-repeat;
	border-bottom: 1px solid var(--border);
	flex: none;
}

.post-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__meta {
	font-size: 11.5px;
	gap: 9px;
}

.post-card__title {
	margin-top: 11px;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -.02em;
	font-weight: 700;
}

.post-card__excerpt {
	margin-top: 9px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-2);
}

/* --- Pagination --- */

.blog-footer {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 34px var(--gutter) 90px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

/* WordPress wraps the links in .nav-links, so the flex row lives there. */
.pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pagination .page-numbers {
	font: 600 14px/1 var(--font-sans);
	padding: 9px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	transition: background .15s ease, color .15s ease;
}

.pagination a.page-numbers:hover {
	background: var(--surface-3);
	color: var(--text);
}

.pagination .page-numbers.current {
	background: var(--navy);
	color: var(--on-navy);
}

.pagination .page-numbers.dots {
	padding: 0 4px;
	color: var(--text-3);
}

/* ==========================================================================
   10. Single post
   ========================================================================== */

.post-article {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 44px var(--gutter) 0;
}

.back-link {
	display: inline-block;
	font: 600 13.5px/1 var(--font-sans);
	color: var(--text-2);
	background: none;
	border: none;
	padding: 8px 10px 8px 0;
	cursor: pointer;
}

.back-link:hover {
	color: var(--text);
}

.post-header {
	max-width: 760px;
	margin: 0 auto;
	padding-top: 14px;
	text-align: center;
}

.post-header__meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
}

.post-header__title {
	margin-top: 16px;
	font-size: clamp(2.1rem, 3.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.033em;
	font-weight: 800;
}

.byline {
	margin-top: 20px;
	display: inline-flex;
	align-items: center;
	gap: 11px;
}

.byline__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--surface-3);
	border: 1px solid var(--border);
	flex: none;
	object-fit: cover;
}

.byline__text {
	text-align: left;
}

.byline__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.byline__org {
	display: block;
	font-size: 12.5px;
	color: var(--text-3);
}

.post-hero {
	max-width: 900px;
	margin: 36px auto 0;
	/* Featured images are consistently 16:9 screenshots; a fixed-height cover
	   crop (the design's 340px banner) would cut half of them away. */
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface-3) center / cover no-repeat;
}

/* --- Post outline sidebar --- */

/* Hidden until the viewport has a real gutter beside the 720px prose column;
   the script also keeps it hidden for posts with fewer than two headings. */
.post-outline {
	display: none;
}

@media (min-width: 1200px) {
	.post-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 720px minmax(0, 1fr);
		column-gap: 28px;
		align-items: start;
	}

	.post-body > .prose {
		grid-column: 2;
		margin: 0;
	}

	/* No transform here: a transformed ancestor becomes the containing block
	   for position:fixed descendants, which would trap the label chip inside
	   this narrow column instead of the viewport. */
	.post-outline:not([hidden]) {
		display: block;
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: calc(96px + var(--admin-bar-h));
		padding-top: 46px;
		/* Sticky makes this a stacking context, which traps the label chip's
		   z-index inside it. Without a level here the chip loses to later
		   positioned content in the article (lightbox figures). Stays under
		   the sticky header (60) and the command palette (200). */
		z-index: 20;
	}
}

/* Collapsed, the outline is a column of tick marks (one per heading, short
   for h3). The labels fade in on hover or keyboard focus. The aside keeps a
   fixed width so revealing them never reflows the article. */

.post-outline__head {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
}

.post-outline__estimate {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-3);
	transition: color .18s ease;
}

.post-outline:hover .post-outline__estimate,
.post-outline:has(:focus-visible) .post-outline__estimate {
	color: var(--text-2);
}

.post-outline__list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	max-height: calc(100vh - 260px);
	overflow-y: auto;
	scrollbar-width: none;
}

.post-outline__list::-webkit-scrollbar {
	display: none;
}

.post-outline__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	border-radius: 7px;
	color: var(--text-3);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

.post-outline__link {
	position: relative;
}

.post-outline__tick {
	flex: none;
	height: 2px;
	width: 22px;
	border-radius: 999px;
	background: var(--border-strong);
	transition: width .18s ease, background-color .18s ease;
}

.post-outline__link--sub .post-outline__tick {
	width: 12px;
	margin-left: 10px;
}

/* Sections already scrolled past read as "done" rather than upcoming. */
.post-outline__link.is-read .post-outline__tick {
	background: var(--navy);
	opacity: .45;
}

.post-outline__link.is-active .post-outline__tick {
	width: 32px;
	background: var(--navy);
}

.post-outline__link--sub.is-active .post-outline__tick {
	width: 22px;
}

.post-outline__link:hover .post-outline__tick,
.post-outline__link.is-near .post-outline__tick {
	background: var(--navy);
	opacity: 1;
}

/* The label floats out of flow so revealing one never moves the ticks below
   it. Only the heading nearest the cursor gets one (.is-near, set in JS).
   Position is FIXED and set in JS: the ticks list scrolls, and an absolutely
   positioned chip gets clipped by that ancestor's overflow. Sits under the
   sticky header (z-index 60). */
.post-outline__label {
	position: fixed;
	z-index: 50;
	max-width: 320px;
	padding: 5px 9px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 10px 24px -14px var(--shadow-lg);
	color: var(--text);
	/* Sized to the full heading. The chip is out of flow, so a tall one
	   costs nothing; clamping it only ever cut text mid-line. */
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transform: translate(-4px, -50%);
	transition: opacity .16s ease, transform .16s ease;
}

.post-outline__link.is-near .post-outline__label {
	opacity: 1;
	transform: translate(0, -50%);
}

.post-outline__link.is-active .post-outline__label {
	color: var(--navy);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.post-outline__tick,
	.post-outline__label,
	.post-outline__estimate {
		transition: none;
	}
}

.prose h2,
.prose h3 {
	scroll-margin-top: calc(96px + var(--admin-bar-h));
}

.outline-ping {
	animation: outlinePing 1.4s ease both;
	border-radius: 6px;
}

@keyframes outlinePing {
	0% { background: var(--navy-soft); box-shadow: 0 0 0 8px var(--navy-soft); }
	100% { background: transparent; box-shadow: 0 0 0 8px transparent; }
}

/* --- Prose --- */

.prose {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 0 0;
}

.prose > .post-excerpt {
	font-size: 21px;
	line-height: 1.6;
	letter-spacing: -.012em;
	color: var(--text);
}

.prose p {
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.75;
	color: var(--text-2);
}

.prose h2 {
	margin-top: 42px;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -.025em;
	font-weight: 800;
	color: var(--text);
}

.prose h3 {
	margin-top: 34px;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -.02em;
	font-weight: 700;
	color: var(--text);
}

.prose h4 {
	margin-top: 28px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.prose ul,
.prose ol {
	margin-top: 20px;
	padding-left: 1.4em;
	font-size: 18px;
	line-height: 1.75;
	color: var(--text-2);
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: 8px;
}

.prose li::marker {
	color: var(--text-3);
}

.prose blockquote {
	margin: 34px 0 0;
	padding: 22px 26px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 19px;
	line-height: 1.55;
	letter-spacing: -.012em;
	font-weight: 600;
	color: var(--text);
}

.prose blockquote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.prose blockquote p + p {
	margin-top: 12px;
}

.prose blockquote cite {
	display: block;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	color: var(--text-3);
}

.prose pre {
	margin: 28px 0 0;
	padding: 20px 22px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--text-2);
}

.prose pre code {
	font-family: inherit;
	font-size: inherit;
	background: none;
	padding: 0;
	border: none;
}

.prose code {
	font-family: var(--font-mono);
	font-size: .88em;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: .12em .38em;
	color: var(--text);
}

.prose img,
.prose figure {
	margin-top: 28px;
}

.prose figure img {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	display: block;
}

.prose figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--text-3);
	text-align: center;
}

.prose hr {
	margin: 42px 0 0;
	border: none;
	border-top: 1px solid var(--border);
}

.prose table {
	margin-top: 28px;
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose th,
.prose td {
	border: 1px solid var(--border);
	padding: 10px 14px;
	text-align: left;
	color: var(--text-2);
}

.prose th {
	background: var(--surface-2);
	color: var(--text);
	font-weight: 700;
}

/* Core's stripes style hardcodes #f0f0f0 for the odd rows and the bottom
   border, which stays light in dark mode. Re-point both at tokens. */
.prose .wp-block-table.is-style-stripes {
	border-bottom-color: var(--border);
}

.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--surface-2);
}

.prose .wp-block-table.is-style-stripes td,
.prose .wp-block-table.is-style-stripes th {
	border-color: transparent;
	color: var(--text-2);
}

.prose .wp-block-table.is-style-stripes th {
	color: var(--text);
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

/* Full/wide alignments inside the constrained prose column. */
.prose .alignwide {
	width: min(900px, calc(100vw - 2 * var(--gutter)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull {
	width: calc(100vw - 2 * var(--gutter));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignleft {
	float: left;
	margin: 28px 28px 12px 0;
	max-width: 45%;
}

.prose .alignright {
	float: right;
	margin: 28px 0 12px 28px;
	max-width: 45%;
}

.prose .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* --- Author box & related --- */

.author-box {
	margin-top: 52px;
	padding: 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.author-box__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--surface-3);
	border: 1px solid var(--border);
	flex: none;
	object-fit: cover;
}

.author-box__body {
	flex: 1;
	min-width: 220px;
}

.author-box__name {
	font-size: 15.5px;
	font-weight: 700;
}

.author-box__bio {
	margin-top: 6px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-2);
}

.related {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 66px var(--gutter) 90px;
}

.related__title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.related__grid {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.related-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 22px;
	transition: transform .2s ease, border-color .2s ease;
	color: inherit;
	display: block;
}

.related-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
	color: inherit;
}

.related-card__meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-3);
}

.related-card__title {
	margin-top: 11px;
	font-size: 17px;
	line-height: 1.28;
	letter-spacing: -.02em;
	font-weight: 700;
}

/* ==========================================================================
   11. Pages
   ========================================================================== */

.page-hero {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 72px var(--gutter) 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 52px;
	align-items: center;
}

.page-hero__title {
	margin-top: 14px;
	font-size: clamp(2.3rem, 3.8vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	font-weight: 800;
}

.page-hero__text {
	margin-top: 20px;
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--text-2);
}

.page-hero__text + .page-hero__text {
	margin-top: 14px;
}

.page-hero__art {
	display: grid;
	place-items: center;
}

.page-hero__art .illus {
	width: 100%;
	max-width: 340px;
	height: 260px;
}

.info-grid {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 72px var(--gutter) 96px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 20px;
}

.info-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 26px;
	box-shadow: 0 1px 2px var(--shadow);
}

a.info-card {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease;
}

a.info-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
	a.info-card {
		transition: none;
	}

	a.info-card:hover {
		transform: none;
	}
}

.info-card__title {
	font-size: 17px;
	font-weight: 700;
}

.info-card__text {
	margin-top: 10px;
	font-size: 14.8px;
	line-height: 1.62;
	color: var(--text-2);
}

/* Sponsor cards (giving-back). Theme-native stand-in for GitHub's iframe widget. */

.sponsors {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 22px;
}

.sponsor-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 16px 16px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px var(--shadow);
}

.prose .sponsor-card img.sponsor-card__avatar {
	margin: 0;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--border);
	background: var(--surface-3);
}

.sponsor-card__body {
	flex: 1;
	min-width: 0;
}

.prose a.sponsor-card__name {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--text);
	text-decoration: none;
}

.prose a.sponsor-card__name:hover {
	color: var(--navy);
}

.sponsor-card__handle {
	margin-top: 2px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--text-3);
}

.prose .sponsor-card__blurb {
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--text-2);
}

.prose a.sponsor-card__btn {
	flex-shrink: 0;
	align-self: center;
	text-decoration: none;
	color: var(--text);
}

/* Security cards */

.security-grid {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 64px var(--gutter) 96px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
	gap: 20px;
}

.security-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: 0 1px 2px var(--shadow);
	transition: border-color .2s ease;
}

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

.security-card__tag {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--navy);
	letter-spacing: .04em;
}

.security-card__title {
	margin-top: 12px;
	font-size: 16.5px;
	font-weight: 700;
}

.security-card__text {
	margin-top: 9px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-2);
}

.security-card__points {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.security-card__points li {
	position: relative;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-2);
}

.security-card__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .58em;
	width: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--navy);
}

.security-docs-link {
	max-width: var(--wrap);
	margin: -56px auto 0;
	padding: 0 var(--gutter) 96px;
	text-align: center;
}

/* --- Security documentation --- */

.docs {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 8px var(--gutter) 72px;
}

.docs-section {
	border-top: 1px solid var(--border);
	padding-top: 40px;
	margin-bottom: 56px;
}

.docs-section__title {
	margin-top: 10px;
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -.5px;
}

.docs-section__lede {
	margin-top: 8px;
	max-width: 620px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text-2);
}

.docs-grid {
	margin-top: 26px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.docs-table-wrap {
	margin-top: 24px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 1px 2px var(--shadow);
}

.docs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.docs-table th {
	text-align: left;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-3);
	padding: 13px 18px;
	border-bottom: 1px solid var(--border-strong);
}

.docs-table td {
	padding: 12px 18px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
	color: var(--text-2);
	line-height: 1.5;
}

.docs-table td:first-child {
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}

.docs-table tr:last-child td {
	border-bottom: none;
}

.docs-table__mono {
	font-family: var(--font-mono);
	font-size: 12.5px;
	white-space: nowrap;
}

.docs-updated {
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
}

/* Contact */

.contact {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 72px var(--gutter) 96px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 44px;
	align-items: start;
}

.contact__title {
	font-size: clamp(2.3rem, 3.8vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	font-weight: 800;
}

.contact__lede {
	margin-top: 18px;
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--text-2);
	max-width: 30em;
}

.contact__details {
	margin-top: 34px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact__kicker {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.contact__value {
	margin-top: 6px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--text-2);
}

.contact__links {
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 15px;
}

.contact__links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.contact__form {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: 0 1px 2px var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact__form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-2);
}

.field input,
.field textarea,
.field select {
	padding: 11px 13px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	font-size: 14.5px;
	font-weight: 400;
	outline: none;
	color: var(--text);
	transition: border-color .15s ease;
}

.field textarea {
	resize: vertical;
	font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
	border-color: var(--navy);
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--text-3);
}

.contact__submit {
	margin-top: 4px;
	font-size: 15px;
	font-weight: 700;
	background: var(--navy);
	color: var(--on-navy);
	border: none;
	padding: 13px 22px;
	border-radius: 11px;
	cursor: pointer;
	transition: background .15s ease;
}

.contact__submit:hover {
	background: var(--navy-hover);
}

/* A Gravity Forms embed (legacy markup, no-framework theme) rendered inside
   the contact card, restyled to match the design's .field inputs. */

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

.contact__form .gform_fields {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.contact__form .gform_fields > .gfield {
	width: 100%;
}

.contact__form .gfield_label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-2);
	margin-bottom: 7px;
}

.contact__form .gfield_required_asterisk {
	color: var(--bad);
	margin-left: 2px;
}

.contact__form .ginput_container input[type="text"],
.contact__form .ginput_container input[type="email"],
.contact__form .ginput_container input[type="tel"],
.contact__form .ginput_container textarea,
.contact__form .ginput_container select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	font-size: 14.5px;
	font-weight: 400;
	outline: none;
	color: var(--text);
	transition: border-color .15s ease;
}

.contact__form .ginput_container textarea {
	resize: vertical;
	font-family: inherit;
	height: 160px; /* the designed card wants a compact note box, not GF's 10 rows */
}

.contact__form .ginput_container input:focus,
.contact__form .ginput_container textarea:focus,
.contact__form .ginput_container select:focus {
	border-color: var(--navy);
}

.contact__form .ginput_complex {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.contact__form .gform-field-label--type-sub {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-3);
	margin-top: 6px;
}

.contact__form .gfield_radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.contact__form .gchoice {
	display: flex;
	align-items: center;
	gap: 8px;
}

.contact__form .gchoice input[type="radio"] {
	accent-color: var(--navy);
	margin: 0;
}

.contact__form .gform-field-label--type-inline {
	font-size: 14.5px;
	font-weight: 400;
	color: var(--text);
}

.contact__form .gform_footer {
	margin-top: 4px;
	padding: 0;
}

.contact__form .gform_wrapper .gform_footer input[type="submit"],
.contact__form .gform_wrapper .gform_footer .gform_button,
.contact__form .gform_footer input[type="submit"],
.contact__form .gform_footer .gform_button {
	width: 100% !important; /* GF's legacy stylesheet pins a px width at higher specificity */
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	background: var(--navy);
	color: var(--on-navy);
	border: none;
	padding: 13px 22px;
	border-radius: 11px;
	cursor: pointer;
	transition: background .15s ease;
}

.contact__form .gform_footer input[type="submit"]:hover,
.contact__form .gform_footer .gform_button:hover {
	background: var(--navy-hover);
}

.contact__form .gform_validation_errors,
.contact__form .gfield_validation_message {
	font-size: 13px;
	color: var(--bad);
}

/* Generic page fallback */

.page-simple {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 66px var(--gutter) 90px;
}

.page-simple__header {
	max-width: 720px;
	margin: 0 auto;
}

.page-simple__title {
	font-size: clamp(2.1rem, 3.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.033em;
	font-weight: 800;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface-2);
}

.site-footer__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 52px var(--gutter) 72px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 36px;
}

.brand--footer .brand__name {
	font-size: 15.5px;
}

.footer-brand__row {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
}

.footer-brand__name {
	font-weight: 700;
	font-size: 15.5px;
}

.footer-brand__address,
.footer-brand__note {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-3);
}

.footer-brand__note {
	font-size: 13.5px;
}

.footer-col__title {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.footer-col ul {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.footer-col a {
	font-size: 14.5px;
	color: var(--text-2);
}

.footer-col a:hover {
	color: var(--text);
}

.footer-col__external {
	display: inline-flex;
	margin-left: 6px;
	vertical-align: -1px;
	opacity: .6;
}

.footer-col a:hover .footer-col__external {
	opacity: 1;
}

.footer-col__external svg {
	display: block;
}

.footer-col__badge {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-3);
	vertical-align: 1px;
}

/* ==========================================================================
   12b. Gravity Forms (legacy markup) — retint the plugin's legacy CSS with
   theme tokens so forms follow the light/dark scheme.
   ========================================================================== */

.gform_wrapper.gform_legacy_markup_wrapper {
	margin: 10px 0 28px;
}

/* --- Labels --- */

.gform_wrapper .gfield_label,
.gform_wrapper .gsection_title {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--text);
}

.gform_wrapper .gfield_required,
.gform_wrapper.gform_legacy_markup_wrapper .gfield_required {
	color: var(--bad);
}

.gform_wrapper .ginput_complex label,
.gform_wrapper .gfield_description:not(.validation_message) {
	font-size: 12.5px;
	color: var(--text-3);
}

.gform_wrapper .gsection,
.gform_wrapper.gform_legacy_markup_wrapper .gsection {
	border-bottom: 1px solid var(--border);
}

/* --- Inputs --- */

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select {
	padding: 10px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 14.5px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

/* Fields fill their container — GF's size classes (.medium etc.) would
   otherwise render odd partial widths inside the designed card. */
.gform_wrapper.gform_legacy_markup_wrapper .gfield input[type="text"],
.gform_wrapper.gform_legacy_markup_wrapper .gfield input[type="email"],
.gform_wrapper.gform_legacy_markup_wrapper .gfield input[type="tel"],
.gform_wrapper.gform_legacy_markup_wrapper .gfield input[type="url"],
.gform_wrapper.gform_legacy_markup_wrapper .gfield input[type="number"],
.gform_wrapper.gform_legacy_markup_wrapper .gfield textarea,
.gform_wrapper.gform_legacy_markup_wrapper .gfield select {
	width: 100%;
	box-sizing: border-box;
}

/* Ready-class columns: gf_left_half / gf_right_half pair two fields on a
   row (Name + Email on the contact form); stacks again on small screens.
   The contact card's field list is a wrapping flexbox, so halves size via
   width; the inline-block fallback covers non-flex GF embeds elsewhere. */
@media (min-width: 641px) {
	.contact__form .gform_fields > .gfield.gf_left_half,
	.contact__form .gform_fields > .gfield.gf_right_half {
		width: calc(50% - 8px);
	}

	.gform_wrapper.gform_legacy_markup_wrapper:not(.contact__form *) li.gfield.gf_left_half,
	.gform_wrapper.gform_legacy_markup_wrapper:not(.contact__form *) li.gfield.gf_right_half {
		display: inline-block;
		vertical-align: top;
		width: calc(50% - 8px);
	}

	.gform_wrapper.gform_legacy_markup_wrapper:not(.contact__form *) li.gfield.gf_left_half {
		margin-right: 12px;
	}
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px var(--navy-soft);
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
	color: var(--text-3);
	opacity: 1;
}

.gform_wrapper input[type="radio"],
.gform_wrapper input[type="checkbox"] {
	accent-color: var(--navy);
}

.gform_wrapper .gfield_radio label,
.gform_wrapper .gfield_checkbox label {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--text);
}

.gform_wrapper .ginput_product_price,
.gform_wrapper .ginput_total {
	color: var(--good);
	font-weight: 600;
}

/* --- Validation --- */

.gform_wrapper .gform_validation_errors,
.gform_wrapper.gform_legacy_markup_wrapper .gform_validation_errors {
	background: var(--surface);
	border: 1px solid var(--bad);
	border-radius: var(--radius);
	box-shadow: 0 10px 30px -18px var(--shadow-lg);
	padding: 14px 18px;
}

.gform_wrapper .gform_validation_errors > h2,
.gform_wrapper.gform_legacy_markup_wrapper .gform_validation_errors > h2,
.gform_wrapper .gform_submission_error,
.gform_wrapper.gform_legacy_markup_wrapper h2.gform_submission_error {
	color: var(--bad);
	font-size: 15px;
	font-weight: 600;
}

.gform_wrapper .gform_validation_errors > h2 .gform-icon,
.gform_wrapper.gform_legacy_markup_wrapper .gform_validation_errors > h2 .gform-icon {
	color: var(--bad);
}

/* Kill the legacy CSS's grey error slab; the message + input border carry it.
   The extra .gform_legacy_markup_wrapper class out-specifies the plugin's
   stylesheet, which loads after this one. */
.gform_wrapper.gform_legacy_markup_wrapper li.gfield.gfield_error,
.gform_wrapper.gform_legacy_markup_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning {
	background: transparent;
	border: 0;
	padding: 0;
	margin-right: 0;
	margin-bottom: 16px !important; /* legacy CSS uses !important here */
	max-width: 100%;
}

.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error textarea,
.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error select {
	border-color: var(--bad);
}

.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error .gfield_label,
.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error ul.gfield_checkbox,
.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error ul.gfield_radio {
	color: var(--text);
}

.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error div.ginput_complex.ginput_container label {
	color: var(--text-3);
}

.gform_wrapper.gform_legacy_markup_wrapper .validation_message,
.gform_wrapper.gform_legacy_markup_wrapper li.gfield_error .gfield_description.validation_message {
	color: var(--bad);
	font-size: 12.5px;
	font-weight: 500;
	padding-top: 6px;
}

/* --- Submit + confirmation --- */

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-sans);
	font-size: 15.5px;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	background: var(--navy);
	color: var(--on-navy);
	transition: transform .15s ease, background .15s ease;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover {
	background: var(--navy-hover);
	transform: translateY(-1px);
}

.gform_confirmation_message {
	display: block;
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--good);
	border-radius: var(--radius);
	padding: 18px 22px;
	font-size: 15px;
	color: var(--text);
}

/* ==========================================================================
   13. Utility pages
   ========================================================================== */

.util {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 96px var(--gutter);
	text-align: center;
}

.util__code {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text-3);
}

.util__title {
	margin-top: 14px;
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	line-height: 1.08;
	letter-spacing: -.03em;
	font-weight: 800;
}

.util__text {
	margin: 16px auto 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 34em;
}

.util__actions {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.search-form {
	margin: 26px auto 0;
	display: flex;
	gap: 10px;
	max-width: 460px;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: var(--radius-sm);
	font-size: 15px;
	outline: none;
	color: var(--text);
}

.search-form input[type="search"]:focus {
	border-color: var(--navy);
}

.archive-hero {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 66px var(--gutter) 0;
}

.archive-hero__title {
	margin-top: 12px;
	font-size: clamp(2.1rem, 3.4vw, 2.9rem);
	line-height: 1.08;
	letter-spacing: -.032em;
	font-weight: 800;
}

.archive-hero__text {
	margin-top: 14px;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--text-2);
	max-width: 34em;
}

/* ==========================================================================
   14. Editor / block content
   ========================================================================== */

.wp-block-image img {
	border-radius: var(--radius);
}

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--border);
	margin: 42px 0 0;
}

.wp-block-button__link {
	background: var(--navy);
	color: var(--on-navy);
	border-radius: 12px;
	padding: 13px 24px;
	font-weight: 700;
	font-size: 15.5px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border-strong);
}

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-embed {
	margin-top: 28px;
}

.wp-block-embed figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--text-3);
	text-align: center;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.extras-card--wide {
		grid-column: auto;
	}
}

@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-top: 56px;
		padding-bottom: 52px;
	}

	.section {
		padding-top: 68px;
		padding-bottom: 68px;
	}

	.fleet__head,
	.fleet__row {
		grid-template-columns: minmax(150px, 2fr) 1fr .8fr;
	}

	.fleet__head span:nth-child(3),
	.fleet__core {
		display: none;
	}

	.threat {
		grid-template-columns: 68px 1fr;
		row-gap: 8px;
	}

	.threat__affected,
	.threat__status {
		grid-column: 2;
		text-align: left;
	}
}

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

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 24px 44px -30px var(--shadow-lg);
		padding: 10px var(--gutter) 16px;
		display: none;
	}

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

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.main-nav a {
		padding: 12px 14px;
	}

	.main-nav .main-nav__signin {
		display: block;
		margin-top: 8px;
		border-top: 1px solid var(--border);
		padding-top: 14px;
		font-weight: 700;
		color: var(--navy);
	}

	.header-spacer {
		display: none;
	}

	.site-header__inner {
		gap: 12px;
		flex-wrap: nowrap;
	}

	.brand {
		flex: 1;
		min-width: 0;
	}

	.search-trigger span:last-child {
		display: none;
	}

	.header-cta {
		display: none;
	}

	.hero__inner {
		grid-template-columns: 1fr;
	}

	.featured-post__body {
		padding: 26px 24px 28px;
	}

	.prose > .post-excerpt {
		font-size: 19px;
	}

	.prose p,
	.prose ul,
	.prose ol {
		font-size: 17px;
	}

	.contact,
	.page-hero,
	.cta__inner {
		gap: 32px;
	}

	.faq__q {
		font-size: 16px;
		padding: 15px 16px;
	}

	.faq__a {
		padding: 0 16px 15px 32px;
	}

	.sponsor-card {
		flex-wrap: wrap;
	}

	.prose a.sponsor-card__btn {
		width: 100%;
		margin-top: 2px;
	}
}

@media (max-width: 560px) {
	:root {
		--gutter: 18px;
	}

	.hero__title {
		font-size: clamp(2.3rem, 9vw, 2.9rem);
	}

	/* Let the label column wrap so the table needs far less side-scrolling. */
	.docs-table td:first-child {
		white-space: normal;
	}

	.docs-table th,
	.docs-table td {
		padding: 11px 14px;
	}

	.docs-section__title {
		font-size: 23px;
	}

	.statband__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.fleet__head,
	.fleet__row {
		grid-template-columns: 1fr auto;
	}

	.fleet__envs {
		display: none;
	}

	.fleet__head span:nth-child(2) {
		display: none;
	}

	.calc {
		padding: 22px 18px;
	}

	.palette {
		padding: 8vh 12px 12px;
	}
}
