:root {
	--color-background: #f6f7f9;
	--color-surface: #ffffff;
	--color-surface-muted: #f1f4f8;
	--color-brand: #1d5bad;
	--color-brand-dark: #163f8c;
	--color-brand-light: #2f86d6;
	--color-brand-tint: #eaf1fb;
	--color-text: #1c2230;
	--color-muted: #626b80;
	--color-border: #e2e6ec;
	--color-pass: #1e6b3d;
	--color-pass-soft: #e3f5e9;
	--color-warning: #8a5b09;
	--color-warning-soft: #fdf1d6;
	--color-fail: #a3311f;
	--color-fail-soft: #fbe6e3;
	--shadow-surface: 0 8px 24px rgb(29 91 173 / 10%);
	--radius-small: .5rem;
	--radius-medium: .75rem;
	--radius-large: 1rem;
	--font-heading: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
	--font-body: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

body {
	font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.brand-copy strong,
.footer-brand strong {
	font-family: var(--font-heading);
}

.shell-header {
	border-bottom-color: var(--color-border);
}

.shell-header .header-inner {
	min-height: 4.25rem;
}

.brand {
	gap: .75rem;
}

.brand-mark {
	width: 2.125rem;
	height: 2.125rem;
	border-radius: .7rem;
	background: url("/brand-icon.svg") center / cover no-repeat;
	box-shadow: 0 5px 14px rgb(29 91 173 / 18%);
}

.brand-mark .brand-icon {
	display: none;
}

.brand-copy {
	gap: .06rem;
}

.brand-copy strong {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

.brand-copy small {
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .04em;
}

.header-context {
	font-size: .72rem;
}

.home-page .landing {
	grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 1fr);
	align-items: start;
	gap: 3rem;
	min-height: auto;
	padding-block: 3.5rem 3rem;
}

.home-page .landing-copy {
	padding-top: .35rem;
}

.home-page .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1.125rem;
	padding: .38rem .85rem .38rem .62rem;
	border: 1px solid #cfe0f5;
	border-radius: 999px;
	color: var(--color-brand-dark);
	background: var(--color-brand-tint);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.home-page .eyebrow::before {
	width: .38rem;
	height: .38rem;
	border-radius: 50%;
	background: var(--color-brand);
	content: "";
	flex: 0 0 auto;
}

.home-page h1 {
	max-width: 18ch;
	margin-bottom: 1.1rem;
	font-family: var(--font-heading);
	font-size: clamp(2.25rem, 4.2vw, 3.2rem);
	font-weight: 700;
	line-height: 1.12;
}

.home-page .lead {
	max-width: 31rem;
	margin-bottom: 1.25rem;
	color: #3a4152;
	font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.home-page .practice-note {
	position: relative;
	display: grid;
	grid-template-columns: .5rem minmax(0, 1fr);
	column-gap: .65rem;
	row-gap: .55rem;
	align-items: start;
	max-width: 32rem;
	padding: .9rem 1rem;
	border: 0;
	border-radius: .65rem;
	background: var(--color-brand-tint);
}

.home-page .practice-note > .icon {
	display: none;
}

.home-page .practice-note::before {
	grid-column: 1;
	grid-row: 1;
	width: .5rem;
	height: .5rem;
	margin-top: .4rem;
	border-radius: 50%;
	background: var(--color-brand);
	content: "";
}

.home-page .practice-note p {
	grid-column: 2;
	margin-bottom: 0;
	color: #2c3542;
	font-size: .82rem;
}

.home-page .check-panel {
	padding: 1.75rem;
	border: 1.5px solid rgb(29 91 173 / 35%);
	border-radius: 1rem;
	box-shadow: var(--shadow-surface);
}

.home-page .check-panel .panel-label {
	margin-bottom: .35rem;
	color: var(--color-brand);
	font-size: .72rem;
	letter-spacing: .06em;
}

.home-page .check-panel h2 {
	margin-bottom: .55rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
}

.home-page .form-help {
	margin-bottom: 1.1rem;
	font-size: .82rem;
}

.home-page .form-row {
	gap: .5rem;
}

.home-page input,
.home-page button {
	min-height: 2.75rem;
	border-radius: .625rem;
}

.home-page input {
	border-color: #d7dbe3;
	padding-inline: .85rem;
}

.home-page button {
	padding-inline: 1.25rem;
}

.home-page .trust-list {
	gap: .5rem;
	font-size: .77rem;
}

.home-page .current-scope {
	padding-block: 0 3rem;
}

.home-page .current-scope .compact-heading {
	margin-bottom: .8rem;
}

.home-page .scope-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: .75rem;
	background: var(--color-border);
}

.home-page .scope-grid li,
.home-page .scope-grid-categories li:nth-child(n) {
	justify-items: center;
	gap: .2rem;
	padding: 1.05rem .5rem;
	border: 0;
	border-radius: 0;
	background: var(--color-surface);
	text-align: center;
}

.home-page .scope-grid strong {
	color: #333c4d;
	font-size: .78rem;
}

.home-page .scope-grid span {
	color: var(--color-muted);
	font-size: .69rem;
}

.shell-footer {
	border-top-color: var(--color-border);
}

.footer-brand span,
.footer-links {
	color: var(--color-muted);
}

.footer-brand a {
	color: var(--color-brand);
	font-weight: 650;
}

@media (max-width: 48rem) {
	.shell-header .header-inner {
		min-height: 3.8rem;
	}

	.header-context {
		display: none;
	}

	.home-page .landing {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding-block: 2rem 1.75rem;
	}

	.home-page .landing-copy {
		padding-top: 0;
	}

	.home-page .check-panel {
		padding: 1.25rem;
	}

	.home-page .scope-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 32rem) {
	.home-page .form-row {
		flex-direction: column;
	}

	.home-page .form-row button {
		width: 100%;
	}
}

@media (max-width: 24rem) {
	.brand-mark {
		width: 2rem;
		height: 2rem;
	}

	.home-page h1 {
		font-size: 2rem;
	}

	.home-page .scope-grid {
		grid-template-columns: 1fr;
	}
}

.header-context-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: .3rem .55rem;
	border-radius: var(--radius-small);
	color: var(--color-brand);
	font-weight: 700;
	text-decoration: none;
}

.header-context-link:hover {
	background: var(--color-brand-tint, #eaf1fb);
	color: var(--color-brand-dark);
}

.header-context-link:focus-visible {
	outline: 2px solid var(--color-brand);
	outline-offset: 2px;
}

.footer-inner {
	align-items: flex-start;
}

.footer-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(9rem, 1fr));
	gap: 1.25rem 2.5rem;
	margin-left: auto;
}

.footer-link-group {
	display: grid;
	gap: .55rem;
}

.footer-link-group-title {
	color: var(--color-text);
	font-size: .75rem;
}

.footer-link-group-links {
	display: grid;
	gap: .4rem;
}

.footer-link-group a,
.footer-language a {
	font-size: .78rem;
	font-weight: 650;
}

.footer-language {
	display: flex;
	align-items: flex-start;
}

.footer-language a {
	white-space: nowrap;
}

@media (max-width: 48rem) {
	.header-context.header-context-link {
		display: inline-flex;
	}

	.footer-navigation {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 32rem) {
	.footer-navigation {
		grid-template-columns: 1fr;
	}
}

.external-documentation-link::after {
	margin-left: .28rem;
	color: currentColor;
	font-size: .78em;
	font-weight: 800;
	content: "↗";
}

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

@media (max-width: 48rem) {
	.report-summary-v3 .report-tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: .25rem;
		overflow-x: auto;
		overflow-y: hidden;
		padding: .25rem;
		scroll-padding-inline: .25rem;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.report-summary-v3 .report-tab {
		width: auto;
		min-height: 2.25rem;
		padding: .35rem .62rem;
		flex: 0 0 auto;
		font-size: .7rem;
		white-space: nowrap;
	}
}

@media (max-width: 36rem) {
	.report-summary-v3 .report-panel,
	.report-summary-v3 .report-fragment-v2,
	.report-summary-v3 .report-fragment-v2 .result,
	.report-summary-v3 .report-fragment-v2 .result summary {
		min-width: 0;
		max-width: 100%;
	}

	.report-summary-v3 .report-fragment-v2 .result summary {
		grid-template-columns: 1.65rem minmax(0, 1fr) auto;
	}

	.report-summary-v3 .report-fragment-v2 .result-title {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.report-summary-v3 .report-fragment-v2 .result-evidence {
		display: none;
	}
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: .5rem;
	left: max(.5rem, env(safe-area-inset-left));
	padding: .65rem .9rem;
	transform: translateY(calc(-100% - 1rem));
	border: 2px solid var(--color-brand);
	border-radius: .5rem;
	color: var(--color-brand-dark);
	background: var(--color-surface);
	font-weight: 750;
	text-decoration: none;
	box-shadow: var(--shadow-surface);
}

.skip-link:focus-visible {
	transform: none;
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.brand-mark {
	width: 2.125rem;
	height: 2.125rem;
	aspect-ratio: 1 / 1;
	flex: 0 0 2.125rem;
	overflow: hidden;
	border-radius: .7rem;
	background: none;
	box-shadow: none;
}

.brand-logo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.shell-header-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .75rem 1rem;
	min-width: 0;
	margin-left: auto;
	font-size: .78rem;
	font-weight: 650;
}

.shell-header-nav a,
.footer-links a {
	white-space: nowrap;
}

.shell-header-nav a:not(.shell-icon-link),
.footer-links a {
	display: inline-flex;
	min-height: 3rem;
	padding: .5rem .35rem;
	align-items: center;
}

.shell-header-nav a:not(.shell-icon-link) {
	color: var(--color-brand);
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.shell-header-nav a:not(.shell-icon-link):visited {
	color: var(--color-brand);
}

.shell-header-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
	color: var(--color-text);
	text-decoration: none;
}

.shell-icon-button,
.shell-icon-link {
	display: inline-grid;
	width: 2.25rem;
	height: 2.25rem;
	min-height: 2.25rem;
	padding: 0;
	place-items: center;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-brand);
	background: var(--color-surface);
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
}

.shell-icon-button:hover,
.shell-icon-link:hover,
.shell-icon-button[aria-pressed="true"] {
	color: #fff;
	background: var(--color-brand);
}

.shell-control-icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.shell-mobile-menu {
	display: none;
	position: relative;
	margin-left: auto;
}

.shell-mobile-menu summary {
	display: inline-flex;
	min-height: 3rem;
	padding: .55rem .75rem;
	align-items: center;
	gap: .45rem;
	border: 1px solid var(--color-border);
	border-radius: .6rem;
	color: var(--color-brand);
	background: var(--color-surface);
	font-size: .78rem;
	font-weight: 750;
	cursor: pointer;
	list-style: none;
}

.shell-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.shell-mobile-menu[open] summary {
	color: #fff;
	background: var(--color-brand);
}

.shell-mobile-menu-links {
	position: absolute;
	z-index: 50;
	top: calc(100% + .5rem);
	right: 0;
	display: grid;
	min-width: 13rem;
	padding: .65rem;
	gap: .25rem;
	border: 1px solid var(--color-border);
	border-radius: .75rem;
	background: var(--color-surface);
	box-shadow: var(--shadow-surface);
}

.shell-mobile-menu-links > a:not(.shell-icon-link) {
	display: flex;
	min-height: 3rem;
	padding: .65rem .7rem;
	align-items: center;
	border-radius: .45rem;
	color: var(--color-text);
	text-decoration: none;
}

.shell-mobile-menu-links > a:not(.shell-icon-link):hover,
.shell-mobile-menu-links > a[aria-current="page"]:not(.shell-icon-link) {
	background: var(--color-surface-muted);
}

.shell-mobile-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .45rem .7rem .25rem;
	border-top: 1px solid var(--color-border);
}

.footer-inner {
	align-items: flex-start;
}

.footer-brand,
.footer-navigation,
.footer-language {
	align-self: flex-start;
}

.home-page .practice-note {
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
}

.home-page .practice-note::before {
	content: none;
}

.home-page .practice-note p {
	position: relative;
	grid-column: 1;
	padding-left: 1.15rem;
}

.home-page .practice-note p::before {
	position: absolute;
	top: .42rem;
	left: 0;
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--color-brand);
	content: "";
}

.footer-navigation {
	align-items: start;
}

.footer-link-group {
	grid-template-rows: 1rem auto;
	gap: .45rem;
	align-content: start;
}

.footer-link-group-title {
	min-height: 1rem;
	line-height: 1rem;
}

.footer-link-group-links {
	grid-auto-rows: 1.25rem;
	gap: .3rem;
}

.footer-link-group a {
	display: block;
	min-height: 1.25rem;
	line-height: 1.25rem;
	white-space: nowrap;
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .65rem 1.25rem;
	flex-wrap: wrap;
}

.footer-links .language-switch {
	font-weight: 750;
}

.shell-footer .footer-context {
	display: none;
}

.methodology-article,
.guide-article {
	max-width: none;
	margin-inline: 0;
}

body.reading-mode .methodology-article,
body.reading-mode .guide-article {
	max-width: var(--width-reading);
	margin-inline: auto;
}

body.reading-mode .guide-layout {
	grid-template-columns: minmax(0, 1fr);
}

body.reading-mode .guide-aside {
	position: static;
}

.scope-area {
	display: grid !important;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	align-items: center;
	gap: .78rem;
	text-align: left;
}

.scope-area-icon {
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	border-radius: .62rem;
	color: var(--color-brand);
	background: color-mix(in srgb, var(--color-brand) 8%, var(--color-surface));
}

.scope-area-svg {
	width: 1.3rem;
	height: 1.3rem;
}

.scope-area-copy {
	display: grid;
	min-width: 0;
	gap: .1rem;
	align-content: center;
	justify-items: start;
	text-align: left;
}

.scope-area-copy > strong,
.scope-area-copy > span {
	width: 100%;
	text-align: left;
}

.category-radar-icon {
	display: grid;
	width: 1.2rem;
	height: 1.2rem;
	place-items: center;
	color: var(--color-brand);
}

.category-profile-icon {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
}

.metric-label {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}

.metric-label-icon {
	display: inline-grid;
	place-items: center;
	color: var(--color-brand);
}

@media (max-width: 48rem) {
	.header-inner {
		flex-direction: row;
		align-items: center;
		gap: .75rem;
	}

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

	.brand-copy {
		min-width: 0;
	}

	.shell-header-nav-desktop {
		display: none;
	}

	.shell-mobile-menu {
		display: block;
	}

	.footer-inner {
		align-items: flex-start;
	}

	.footer-links {
		justify-content: flex-start;
	}

	.scope-area {
		grid-template-columns: 2rem minmax(0, 1fr);
		gap: .65rem;
	}

	.scope-area-icon {
		width: 2rem;
		height: 2rem;
	}
}

@media (max-width: 24rem) {
	.brand-mark {
		width: 2rem;
		height: 2rem;
		flex-basis: 2rem;
	}

	.brand-copy strong {
		font-size: .88rem;
	}

	.brand-copy small {
		font-size: .62rem;
	}

	.shell-mobile-menu-links {
		min-width: min(13rem, calc(100vw - 2rem));
	}
}

@media (max-width: 48rem) {
	:root {
		--page-gutter-mobile: 1rem;
	}

	.shell-container,
	.shell-main {
		width: auto;
		max-width: var(--width-content);
		margin-left: max(var(--page-gutter-mobile), env(safe-area-inset-left));
		margin-right: max(var(--page-gutter-mobile), env(safe-area-inset-right));
	}

	.shell-main,
	.shell-main > *,
	.methodology-article,
	.guide-index,
	.guide-article,
	.guide-layout,
	.guide-content,
	.guide-aside,
	.research-page article,
	.example-report-context,
	.example-report-facts,
	.example-report-facts > div,
	.report-fragment,
	.diagnosis,
	.diagnosis-copy,
	.diagnosis-metrics,
	.score-summary,
	.results {
		min-width: 0;
		max-width: 100%;
	}

	.home-page h1,
	.methodology-page h1,
	.guides-page h1,
	.research-page h1,
	.example-report-page .example-report-context h1 {
		font-size: 1.85rem;
		line-height: 1.14;
	}

	.home-page .lead,
	.methodology-page .lead,
	.guides-page .lead,
	.research-page .lead,
	.example-report-page .example-report-context .lead {
		font-size: .96rem;
		line-height: 1.55;
	}

	.methodology-page,
	.guides-page,
	.research-page,
	.example-report-page {
		font-size: .95rem;
	}

	.methodology-page p,
	.methodology-page li,
	.guides-page p,
	.guides-page li,
	.research-page p,
	.research-page li,
	.example-report-page p,
	.example-report-page dd,
	.example-report-page a {
		overflow-wrap: anywhere;
	}

	.methodology-article li,
	.guide-content p,
	.guide-content li,
	.research-page p,
	.research-page li {
		line-height: 1.58;
	}

	.methodology-criterion p,
	.guide-content p,
	.guide-content li,
	.research-card p,
	.research-notes li {
		font-size: .9rem;
	}

	.research-page {
		padding: 1.5rem 0 3rem;
	}

	.research-intro,
	.research-intro h1,
	.research-disclaimer,
	.research-window,
	.research-grid,
	.research-notes {
		min-width: 0;
		max-width: 100%;
	}

	.research-disclaimer,
	.research-sample,
	.research-notes,
	.research-card,
	.research-window div {
		padding: .9rem 1rem;
	}

	.example-report-page {
		overflow-x: clip;
	}

	.example-report-context {
		padding: 1rem;
	}

	.example-report-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: .75rem;
	}

	.example-report-facts > div {
		padding: 1rem;
	}

	.guide-card,
	.guide-aside section,
	.guide-aside > p,
	.methodology-disclosure,
	.methodology-toc,
	.methodology-criterion {
		max-width: 100%;
	}

	.guide-code,
	.table-scroll {
		max-width: 100%;
	}
}

@media (max-width: 24rem) {
	.home-page h1,
	.methodology-page h1,
	.guides-page h1,
	.research-page h1,
	.example-report-page .example-report-context h1 {
		font-size: 1.72rem;
	}

	.home-page .lead,
	.methodology-page .lead,
	.guides-page .lead,
	.research-page .lead,
	.example-report-page .example-report-context .lead {
		font-size: .93rem;
	}

	.example-report-context,
	.example-report-facts > div,
	.research-disclaimer,
	.research-sample,
	.research-notes,
	.research-card,
	.research-window div {
		padding-inline: .85rem;
	}
}
