:root {
	--hwl-ink: #202524;
	--hwl-navy: #18324a;
	--hwl-blue: #274c6b;
	--hwl-soft-blue: #f1f6fa;
	--hwl-line: #dce3e9;
	--hwl-muted: #657078;
	--hwl-green: #22744f;
	--hwl-green-soft: #edf7f1;
	--hwl-amber: #9a5a00;
	--hwl-amber-soft: #fff7e8;
	--hwl-red: #a83f36;
	--hwl-red-soft: #fff1ef;
	--hwl-grey: #7b858c;
	--hwl-grey-soft: #f3f5f6;
}

.hwl-page-intro {
	font-size: clamp(1.125rem, 2vw, 1.35rem);
	line-height: 1.6;
}

.hwl-evidence-summary {
	background: #fff;
	border: 1px solid var(--hwl-line);
	border-left: 5px solid var(--hwl-grey);
	border-radius: 0.25rem;
	box-shadow: 0 0.25rem 1.5rem rgba(24, 50, 74, 0.06);
	margin: 2rem 0;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.hwl-evidence-summary--green {
	border-left-color: var(--hwl-green);
}

.hwl-evidence-summary--amber {
	border-left-color: var(--hwl-amber);
}

.hwl-evidence-summary--red {
	border-left-color: var(--hwl-red);
}

.hwl-component-label {
	color: var(--hwl-blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.hwl-evidence-heading {
	align-items: flex-start;
	display: flex;
	gap: 1.25rem;
	justify-content: space-between;
}

.hwl-evidence-heading h3 {
	color: var(--hwl-navy);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.25;
	margin: 0;
}

.hwl-evidence-claim {
	color: var(--hwl-muted);
	font-size: 0.95rem;
	margin: 0.35rem 0 0;
}

.hwl-evidence-rating {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 0.6rem;
}

.hwl-evidence-rating strong {
	color: var(--hwl-navy);
	display: block;
	font-size: 1.4rem;
	line-height: 1;
}

.hwl-evidence-rating small {
	color: var(--hwl-muted);
	display: block;
	font-size: 0.72rem;
	margin-top: 0.25rem;
	max-width: 7rem;
}

.hwl-evidence-marker {
	background: var(--hwl-grey);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(32, 37, 36, 0.22);
	display: inline-block;
	flex: 0 0 auto;
	height: 1rem;
	vertical-align: middle;
	width: 1rem;
}

.hwl-evidence-rating .hwl-evidence-marker {
	height: 1.45rem;
	width: 1.45rem;
}

.hwl-evidence-marker--green {
	background: var(--hwl-green);
}

.hwl-evidence-marker--amber {
	background: var(--hwl-amber);
}

.hwl-evidence-marker--red {
	background: var(--hwl-red);
}

.hwl-evidence-marker--grey {
	background: var(--hwl-grey);
}

.hwl-evidence-verdict {
	background: var(--hwl-soft-blue);
	border-radius: 0.2rem;
	color: var(--hwl-ink);
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 1.25rem 0;
	padding: 1rem 1.1rem;
}

.hwl-evidence-section {
	margin-top: 1.25rem;
}

.hwl-evidence-section h4,
.hwl-evidence-sources h4 {
	color: var(--hwl-navy);
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
}

.hwl-evidence-section p {
	margin: 0;
}

.hwl-safety-note {
	background: var(--hwl-red-soft);
	border-left: 3px solid var(--hwl-red);
	line-height: 1.55;
	margin-top: 1.25rem;
	padding: 0.9rem 1rem;
}

.hwl-evidence-sources {
	border-top: 1px solid var(--hwl-line);
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.hwl-evidence-sources ul {
	font-size: 0.9rem;
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.hwl-article-meta {
	color: var(--hwl-muted);
	font-size: 0.82rem;
	margin: 1.25rem 0 0;
}

.hwl-component-missing {
	border: 1px dashed var(--hwl-red);
	color: var(--hwl-red);
	padding: 1rem;
}

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

.hwl-method th,
.hwl-method td {
	border-bottom: 1px solid var(--hwl-line);
	padding: 0.75rem;
	text-align: left;
	vertical-align: top;
}

.hwl-method thead th {
	background: var(--hwl-soft-blue);
	color: var(--hwl-navy);
}

.hwl-method tbody th {
	white-space: nowrap;
}

.hwl-matrix {
	margin: 2rem 0;
}

.hwl-matrix-intro {
	background: var(--hwl-soft-blue);
	border-left: 4px solid var(--hwl-blue);
	margin-bottom: 1.25rem;
	padding: 1rem 1.1rem;
}

.hwl-matrix-intro > p {
	margin: 0;
}

.hwl-matrix-legend {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	gap: 0.6rem 1.1rem;
	margin-top: 0.9rem;
}

.hwl-matrix-legend span {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
}

.hwl-matrix-table-wrap {
	overflow: auto;
	padding: 0.1rem 0.1rem 1rem;
}

.hwl-matrix-table {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.88rem;
	min-width: 44rem;
	width: 100%;
}

.hwl-matrix-table th,
.hwl-matrix-table td {
	background: #fff;
	border-bottom: 1px solid var(--hwl-line);
	border-right: 1px solid var(--hwl-line);
	padding: 0.7rem;
	text-align: center;
	vertical-align: middle;
}

.hwl-matrix-table th:first-child,
.hwl-matrix-table td:first-child {
	border-left: 1px solid var(--hwl-line);
}

.hwl-matrix-table thead th {
	background: var(--hwl-navy);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-weight: 700;
	position: sticky;
	top: 0;
	z-index: 2;
}

.hwl-matrix-table thead th:first-child {
	left: 0;
	z-index: 3;
}

.hwl-matrix-table tbody th {
	background: #fff;
	color: var(--hwl-ink);
	left: 0;
	max-width: 15rem;
	min-width: 13rem;
	position: sticky;
	text-align: left;
	z-index: 1;
}

.hwl-matrix-cell {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	position: relative;
}

.hwl-matrix-cell small {
	color: var(--hwl-muted);
	display: block;
	font-size: 0.7rem;
	margin-top: 0.25rem;
	white-space: nowrap;
}

.hwl-matrix-cell-button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0.25rem;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	font: inherit;
	padding: 0.35rem;
}

.hwl-matrix-cell-button:hover {
	background: var(--hwl-soft-blue);
}

.hwl-matrix-cell-button:focus-visible,
.hwl-matrix-popover-close:focus-visible,
.hwl-matrix-filters select:focus-visible {
	outline: 3px solid var(--hwl-blue);
	outline-offset: 2px;
}

.hwl-matrix-popover {
	background: #fff;
	border: 1px solid var(--hwl-line);
	box-shadow: 0 0.5rem 2rem rgba(24, 50, 74, 0.18);
	color: var(--hwl-ink);
	left: 50%;
	min-width: 18rem;
	padding: 1rem;
	position: absolute;
	text-align: left;
	top: calc(100% + 0.5rem);
	transform: translateX(-50%);
	z-index: 10;
}

.hwl-matrix-popover[hidden] {
	display: none;
}

.hwl-matrix-popover > span {
	align-items: center;
	display: flex;
	font-size: 0.82rem;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.hwl-matrix-popover p {
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0.75rem 0;
}

.hwl-matrix-popover a {
	font-size: 0.85rem;
	font-weight: 700;
}

.hwl-matrix-popover-close {
	background: transparent;
	border: 0;
	color: var(--hwl-muted);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0.25rem;
	position: absolute;
	right: 0.35rem;
	top: 0.25rem;
}

.hwl-matrix-mobile {
	display: none;
}

.hwl-matrix-filters {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 1rem;
}

.hwl-matrix-filters label {
	color: var(--hwl-navy);
	font-size: 0.82rem;
	font-weight: 700;
}

.hwl-matrix-filters select {
	background: #fff;
	border: 1px solid var(--hwl-line);
	border-radius: 0.2rem;
	color: var(--hwl-ink);
	display: block;
	font: inherit;
	font-size: 1rem;
	margin-top: 0.3rem;
	padding: 0.65rem 2rem 0.65rem 0.65rem;
	width: 100%;
}

.hwl-matrix-card {
	border: 1px solid var(--hwl-line);
	border-radius: 0.25rem;
	margin-bottom: 0.8rem;
	padding: 1rem;
}

.hwl-matrix-card[hidden],
.hwl-matrix-empty[hidden] {
	display: none;
}

.hwl-matrix-card-heading {
	align-items: center;
	display: grid;
	gap: 0.7rem;
	grid-template-columns: auto 1fr auto;
}

.hwl-matrix-card-heading strong,
.hwl-matrix-card-heading span {
	display: block;
}

.hwl-matrix-card-heading span {
	color: var(--hwl-muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.hwl-matrix-card-heading b {
	color: var(--hwl-navy);
}

.hwl-matrix-card p {
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0.8rem 0;
}

.hwl-matrix-card a {
	font-size: 0.88rem;
	font-weight: 700;
}

@media (max-width: 47.99rem) {
	.hwl-evidence-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.hwl-evidence-rating {
		border-top: 1px solid var(--hwl-line);
		padding-top: 0.9rem;
	}

	.hwl-matrix-table-wrap {
		display: none;
	}

	.hwl-matrix-mobile {
		display: block;
	}

	.hwl-matrix-filters {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hwl-matrix * {
		scroll-behavior: auto !important;
	}
}

