/* ==========================================================================
   W3C Conformance Dashboard Styles (Layered on 00-base.css & 50-dashboard.css)
   ========================================================================== */

:root,
:root[data-theme="light"] {
	--color-inapplicable-bg: #ddf4ff;
	--color-inapplicable-text: #0550ae;
	--color-inapplicable-border: #54aeff;
	--color-cant-tell-bg: #fbefff;
	--color-cant-tell-text: #6639ba;
	--color-cant-tell-border: #c297ff;
	--meter-pass: #1a7f37;
	--meter-fail: #cf222e;
	--meter-skip: #bf8700;
	--meter-inapplicable: #0969da;
	--meter-cant-tell: #8250df;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] {
		--color-inapplicable-bg: rgba(88, 166, 255, 0.16);
		--color-inapplicable-text: #79c0ff;
		--color-inapplicable-border: rgba(88, 166, 255, 0.45);
		--color-cant-tell-bg: rgba(188, 140, 255, 0.16);
		--color-cant-tell-text: #d2a8ff;
		--color-cant-tell-border: rgba(188, 140, 255, 0.45);
		--meter-pass: #3fb950;
		--meter-fail: #f85149;
		--meter-skip: #d29922;
		--meter-inapplicable: #58a6ff;
		--meter-cant-tell: #bc8cff;
	}
}

:root[data-theme="dark"] {
	--color-inapplicable-bg: rgba(88, 166, 255, 0.16);
	--color-inapplicable-text: #79c0ff;
	--color-inapplicable-border: rgba(88, 166, 255, 0.45);
	--color-cant-tell-bg: rgba(188, 140, 255, 0.16);
	--color-cant-tell-text: #d2a8ff;
	--color-cant-tell-border: rgba(188, 140, 255, 0.45);
	--meter-pass: #3fb950;
	--meter-fail: #f85149;
	--meter-skip: #d29922;
	--meter-inapplicable: #58a6ff;
	--meter-cant-tell: #bc8cff;
}

/* ==========================================================================
   Protocol & Reproducibility Disclosure Tile (Aligned with corese-benchmark)
   ========================================================================== */

.protocol-tile {
	margin-block: 0 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
	font-size: 0.875rem;
	line-height: 1.6;
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.protocol-tile summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	padding: 0.875rem 1.25rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.protocol-tile summary::-webkit-details-marker {
	display: none;
}

.protocol-tile summary::marker {
	content: "";
}

.protocol-tile summary:hover {
	background: var(--bg-hover);
}

.protocol-title {
	font-weight: 650;
	color: var(--text);
}

.protocol-summary-meta {
	min-width: 0;
	color: var(--text-muted);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
	margin-inline-start: auto;
	text-align: right;
}

.protocol-chevron {
	flex: none;
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1;
	transition: transform 0.25s ease;
}

.protocol-tile[open] > summary .protocol-chevron {
	transform: rotate(180deg);
}

.protocol-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 1.25rem 1.5rem;
	border-block-start: 1px solid var(--border);
	background: var(--bg);
}

.protocol-section + .protocol-section {
	border-top: 1px solid var(--border);
	padding-top: 16px;
}

.protocol-section-title {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.4;
	color: var(--text);
}

.protocol-note {
	margin: 0 0 0.75rem;
	color: var(--text-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.protocol-facts {
	display: grid;
	grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr);
	gap: 0.5rem 1.25rem;
	margin: 0;
}

.protocol-facts dt {
	color: var(--text-muted);
	font-size: 0.8125rem;
	font-weight: 500;
}

.protocol-facts dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 0.8125rem;
	color: var(--text);
}

.protocol-facts code {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	padding: 2px 5px;
	border-radius: 3px;
	background: var(--bg-page);
	border: 1px solid var(--border);
	word-break: break-all;
}

.protocol-cmd-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 0.5rem 0.75rem;
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.protocol-cmd-box code {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--text);
	word-break: break-all;
}

.btn-copy-cmd {
	flex: none;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}

.btn-copy-cmd:hover {
	background: var(--bg-hover);
	border-color: var(--focus);
}

.protocol-links-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin-top: 0.75rem;
}

.protocol-link {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--focus);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	transition: color 0.12s ease;
}

.protocol-link:hover {
	color: var(--accent);
	text-decoration-thickness: 2px;
}

.protocol-version-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
	.protocol-chevron {
		transition: none;
	}
}

/* ==========================================================================
   Section Titles & Active Filter Pill
   ========================================================================== */

.dashboard-section {
	scroll-margin-top: calc(var(--topbar-h) + 16px);
}

.section-header__left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
	max-width: 100%;
}

.w3c-active-filter {
	display: inline-block;
	max-width: min(100%, 42ch);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
	font-size: 11.5px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--focus) 40%, transparent);
	background: color-mix(in srgb, var(--focus) 10%, var(--bg));
	color: var(--focus);
}

.w3c-section-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: -0.01em;
}

/* ==========================================================================
   KPI Overview Grid
   ========================================================================== */

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 12px;
}

.metric-block {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 12px 14px;
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	user-select: none;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.metric-block:hover {
	background: var(--bg-hover);
	border-color: var(--focus);
}

.metric-block.active {
	border-color: var(--focus);
	box-shadow: inset 0 0 0 1px var(--focus);
	background: color-mix(in srgb, var(--focus) 8%, var(--bg-page));
}

.metric-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.metric-num {
	display: block;
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	color: var(--text-main);
	margin-bottom: 4px;
}

.metric-num.is-zero {
	color: var(--text-faint);
}

.metric-note {
	font-size: 11px;
	color: var(--text-muted);
	line-height: 1.35;
}

.text-success {
	color: var(--tag-active-text);
}
.text-warning {
	color: var(--status-timeout-text);
}
.text-danger {
	color: var(--status-fail-text);
}
.text-inapplicable {
	color: var(--color-inapplicable-text);
}
.text-cant-tell {
	color: var(--color-cant-tell-text);
}

/* ==========================================================================
   Meters
   ========================================================================== */

.global-meter,
.suite-meter {
	display: flex;
	background: var(--bg-hover);
	overflow: hidden;
}

.global-meter {
	height: 8px;
	border-radius: 4px;
	margin-top: 16px;
}

.suite-meter {
	position: relative;
	z-index: 1;
	cursor: pointer;
	height: 6px;
	border-radius: 3px;
}

.meter-segment {
	height: 100%;
}

.meter-segment.pass {
	background: var(--meter-pass);
}
.meter-segment.fail {
	background: var(--meter-fail);
}
.meter-segment.skip {
	background: var(--meter-skip);
}
.meter-segment.inapplicable {
	background: var(--meter-inapplicable);
}
.meter-segment.cant-tell {
	background: var(--meter-cant-tell);
}

/* ==========================================================================
   Supported Specifications Grid (Aligned with corese-benchmark cards)
   ========================================================================== */

.suites-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
}

.suite-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 12px 14px;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.suite-item:hover {
	background: var(--bg-hover);
	border-color: var(--focus);
}

.suite-item.active {
	border-color: var(--focus);
	box-shadow: inset 0 0 0 1px var(--focus);
	background: color-mix(in srgb, var(--focus) 8%, var(--bg-page));
}

.suite-header-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.suite-title-group {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.suite-title {
	font-size: 13px;
	font-weight: 650;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.suite-toggle-btn {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.suite-toggle-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius-md);
}

.suite-toggle-btn:focus-visible {
	outline: none;
}

.suite-toggle-btn:focus-visible::after {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.suite-percent {
	position: relative;
	z-index: 1;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
	flex-shrink: 0;
}

.suite-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: auto;
	padding-top: 7px;
	border-top: 1px dashed var(--border);
	font-size: 11px;
}

.suite-breakdown {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 2px;
	font-size: 11px;
}

.suite-count-item {
	white-space: nowrap;
}

.suite-count-item + .suite-count-item::before {
	content: "•";
	margin: 0 5px;
	opacity: 0.45;
	color: var(--text-muted);
}

.suite-pass-count {
	color: var(--tag-active-text);
	font-weight: 600;
}
.suite-fail-count {
	color: var(--status-fail-text);
	font-weight: 600;
}
.suite-skip-count {
	color: var(--status-timeout-text);
	font-weight: 500;
}
.suite-inapplicable-count {
	color: var(--color-inapplicable-text);
	font-weight: 500;
}
.suite-cant-tell-count {
	color: var(--color-cant-tell-text);
	font-weight: 500;
}

.suite-ext-links {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}

.suite-ext-link {
	font-size: 11px;
	font-weight: 500;
	color: var(--focus);
	text-decoration: none;
	white-space: nowrap;
}

.suite-ext-link:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ==========================================================================
   Test Results Toolbar & Shared Segmented Control
   ========================================================================== */

.w3c-toolbar {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-page);
}

.search-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 260px;
	min-width: 240px;
}

.filter-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	white-space: nowrap;
}

.search-input-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 200px;
	height: 32px;
	padding: 0 10px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: border-color 0.15s ease;
}

.search-input-wrapper:focus-within {
	border-color: var(--focus);
}

.search-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--text-faint);
	display: block;
}

.search-input-wrapper input {
	flex: 1;
	width: 100%;
	height: 100%;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--text);
	font-family: inherit;
	font-size: 12.5px;
	padding: 0;
	margin: 0;
}

.search-input-wrapper input::placeholder {
	color: var(--text-faint);
}

.search-kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--text-faint);
	background: var(--bg-hover);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	pointer-events: none;
	user-select: none;
	transition: opacity 0.15s ease;
}

.search-input-wrapper:focus-within .search-kbd {
	opacity: 0;
}

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

.form-select {
	height: 32px;
	padding: 0 10px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--text);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
}

.select-sm {
	height: 26px;
	padding: 0 8px;
	font-size: 11.5px;
	font-family: var(--font-mono);
}

.filter-group {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	min-inline-size: 0;
	background: var(--bg-hover);
	padding: 2px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	gap: 2px;
}

.filter-btn {
	padding: 4px 10px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-muted);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.12s ease,
		color 0.12s ease;
}

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

.filter-btn.active {
	background: var(--bg);
	color: var(--text);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Test Results Table
   ========================================================================== */

.table-wrapper {
	overflow-x: auto;
}

.report-table td:nth-child(3) {
	white-space: normal;
	overflow-wrap: anywhere;
	min-width: 240px;
}

.report-table tbody tr {
	cursor: pointer;
	content-visibility: auto;
	contain-intrinsic-size: 0 42px;
}

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

.test-name {
	font-weight: 500;
	color: var(--text);
}

.spec-tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--text-muted);
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.status-passed {
	background: var(--tag-active-bg);
	color: var(--tag-active-text);
	border-color: var(--tag-active-border);
}

.status-failed {
	background: var(--status-fail-bg);
	color: var(--status-fail-text);
	border-color: var(--status-fail-border);
}

.status-untested {
	background: var(--status-timeout-bg);
	color: var(--status-timeout-text);
	border-color: var(--status-timeout-border);
}

.status-inapplicable {
	background: var(--color-inapplicable-bg);
	color: var(--color-inapplicable-text);
	border-color: var(--color-inapplicable-border);
}

.status-cant_tell {
	background: var(--color-cant-tell-bg);
	color: var(--color-cant-tell-text);
	border-color: var(--color-cant-tell-border);
}

.data-table td.empty-state {
	text-align: center;
	padding: 36px 16px;
	color: var(--text-muted);
	font-size: 13px;
}

.btn-inline-reset {
	margin-top: 10px;
}

/* ==========================================================================
   Buttons & Footer
   ========================================================================== */

.btn,
.btn-view,
.btn-reset-filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 10px;
	cursor: pointer;
	transition:
		background-color 0.12s ease,
		border-color 0.12s ease,
		color 0.12s ease;
}

.btn:hover:not(:disabled),
.btn-reset-filters:hover {
	background: var(--bg-hover);
	border-color: var(--focus);
	color: var(--focus);
}

.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
	background: var(--focus);
	border-color: var(--focus);
	color: var(--on-accent);
	filter: brightness(1.08);
}

.btn-sm {
	padding: 4px 9px;
	font-size: 11.5px;
}

.btn-view {
	color: var(--accent);
	padding: 1px 7px;
	font-size: 11px;
	margin-left: 4px;
}

.btn-view:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

.btn-row-detail {
	border: 0;
	background: transparent;
	color: var(--text-muted);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.12s ease,
		color 0.12s ease;
}

.report-table tbody tr:hover .btn-row-detail,
.btn-row-detail:hover {
	color: var(--focus);
	background: var(--bg-hover);
}

.btn-reset-filters {
	color: var(--accent);
	padding: 3px 9px;
	font-size: 11.5px;
}

/* ==========================================================================
   Native Modals (<dialog>)
   ========================================================================== */

.modal-window {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(92vw, 660px);
	max-height: 88vh;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	padding: 0;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.modal-window::backdrop {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.modal-inner {
	display: flex;
	flex-direction: column;
	max-height: 88vh;
}

.modal-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-page);
}

.modal-title-box {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.modal-title-box h3 {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	overflow-wrap: anywhere;
}

.modal-close-icon {
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 20px;
	line-height: 1;
	padding: 2px 6px;
	cursor: pointer;
}

.modal-close-icon:hover {
	background: var(--bg-hover);
	color: var(--text);
}

.modal-content-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px;
	overflow-y: auto;
}

.info-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.info-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.info-value {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text);
}

.info-value a {
	color: var(--accent);
	text-decoration: none;
}

.info-value a:hover {
	text-decoration: underline;
}

.modal-meta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	padding: 8px 12px;
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	font-size: 12px;
	color: var(--text-muted);
}

.modal-meta-strip strong {
	color: var(--text);
	font-weight: 600;
}

.modal-meta-sep {
	opacity: 0.45;
}

.info-box {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-page);
}

.info-box__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--bg-hover);
	border-bottom: 1px solid var(--border);
}

.info-box__action {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--focus);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
	border: 0;
	background: transparent;
	padding: 0;
	font-family: inherit;
}

.info-box__action:hover {
	color: var(--accent);
}

.info-box__body {
	padding: 8px 10px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.5;
	word-break: break-all;
	color: var(--text);
}

.info-box__body a {
	color: var(--accent);
	text-decoration: none;
}

.info-box__body a:hover {
	text-decoration: underline;
}

.info-code {
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 8px 10px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1.5;
	word-break: break-all;
	color: var(--text);
}

.info-callout {
	border-radius: var(--radius-md);
	padding: 10px 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text);
}

.info-callout.warning {
	background: var(--status-timeout-bg);
	border: 1px solid var(--status-timeout-border);
	color: var(--status-timeout-text);
}

.info-callout.danger {
	background: var(--status-fail-bg);
	border: 1px solid var(--status-fail-border);
	color: var(--status-fail-text);
}

.info-links {
	font-size: 12.5px;
	line-height: 1.6;
}

.info-links a {
	color: var(--accent);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.info-links a:hover {
	text-decoration: underline;
}

.modal-preview-code {
	max-height: 240px;
	overflow: auto;
	white-space: pre;
	word-break: normal;
	font-size: 11.5px;
	margin: 0;
}

.callout-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.callout-desc {
	font-size: 12px;
	line-height: 1.45;
}

.modal-bottom {
	padding: 12px 20px;
	border-top: 1px solid var(--border);
	background: var(--bg-page);
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* ==========================================================================
   Focus Visibility
   ========================================================================== */

:is(
	.protocol-tile summary,
	.protocol-link,
	.btn-copy-cmd,
	.metric-block,
	.suite-ext-link,
	.form-select,
	.filter-btn,
	.btn,
	.btn-view,
	.btn-row-detail,
	.btn-reset-filters,
	.info-box__action,
	.modal-close-icon
):focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.protocol-version-row[hidden],
.protocol-link[hidden],
.w3c-active-filter[hidden],
.btn-reset-filters[hidden],
.info-row[hidden],
.info-box[hidden] {
	display: none;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	.dashboard-main {
		padding: 20px 16px 40px;
	}
	.protocol-tile summary,
	.protocol-body,
	.section-header,
	.section-body,
	.w3c-toolbar {
		padding-inline: 16px;
	}
	.protocol-tile summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 0.35rem 0.75rem;
	}
	.protocol-chevron {
		grid-column: 2;
		grid-row: 1;
		margin-top: 2px;
	}
	.protocol-summary-meta {
		grid-column: 1 / -1;
		margin-inline-start: 0;
		text-align: left;
		width: 100%;
	}
	.w3c-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.search-group {
		width: 100%;
		flex: 0 0 auto;
		min-width: 0;
	}
	.search-input-wrapper {
		min-width: 0;
	}
	.filter-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
	.filter-group {
		width: 100%;
		overflow-x: auto;
	}
	.metrics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.protocol-facts {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
	.protocol-facts dd {
		margin-bottom: 0.5rem;
	}
}
