/* Typography Parity Lab */
.tnt-typography-parity-root {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
	color: var(--tnt-stout, #1b1b1b);
}

.tnt-parity-header h1 {
	font-family: var(--wp--preset--font-family--soleil, soleil, sans-serif);
	font-size: 2rem;
	margin: 0 0 0.5rem;
}

.tnt-parity-lead {
	margin: 0 0 1rem;
	line-height: 1.5;
	opacity: 0.9;
}

.tnt-parity-status {
	min-height: 1.25rem;
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.tnt-parity-status.is-ok {
	color: #1a6b3c;
}

.tnt-parity-status.is-error {
	color: #a11;
}

.tnt-parity-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.tnt-parity-btn {
	font: inherit;
	cursor: pointer;
	border: 1px solid var(--tnt-taupe, #665c51);
	background: var(--tnt-off-white, #f7f7f7);
	color: var(--tnt-stout, #1b1b1b);
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
}

.tnt-parity-btn--primary {
	background: var(--tnt-gold, #e6b75d);
	border-color: var(--tnt-gold, #e6b75d);
	font-weight: 600;
}

.tnt-parity-btn--ghost {
	background: transparent;
}

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

.tnt-parity-link {
	margin-left: auto;
	color: var(--tnt-gold, #e6b75d);
}

/* Runner — Cursor-ish progress */
.tnt-parity-runner {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #1b1b1b;
	color: #e8e8e8;
	border-radius: 6px;
	font-size: 0.8rem;
	font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
}

.tnt-parity-runner-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.tnt-parity-runner-phase {
	font-weight: 600;
	color: #f4f4f4;
}

.tnt-parity-runner.is-done .tnt-parity-runner-phase {
	color: #7dcea0;
}

.tnt-parity-runner-pct {
	font-variant-numeric: tabular-nums;
	color: var(--tnt-gold, #e6b75d);
}

.tnt-parity-progress-track {
	height: 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	overflow: hidden;
}

.tnt-parity-progress-bar {
	height: 100%;
	width: 0;
	transition: width 0.35s ease;
	background: var(--tnt-gold, #e6b75d);
}

.tnt-parity-progress-bar.is-active {
	background: linear-gradient(90deg, #e6b75d 0%, #00e5ff 50%, #e6b75d 100%);
	background-size: 200% 100%;
	animation: tnt-parity-shimmer 1.4s linear infinite;
}

.tnt-parity-progress-bar.is-complete {
	animation: none;
	background: #7dcea0;
}

@keyframes tnt-parity-shimmer {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 200% 50%;
	}
}

.tnt-parity-runner-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.45rem;
	gap: 0.75rem;
}

.tnt-parity-runner-step {
	opacity: 0.85;
	font-size: 0.72rem;
}

.tnt-parity-log-toggle {
	font: inherit;
	font-size: 0.72rem;
	cursor: pointer;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ccc;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.tnt-parity-log-toggle:hover {
	border-color: var(--tnt-gold, #e6b75d);
	color: var(--tnt-gold, #e6b75d);
}

.tnt-parity-log {
	margin: 0.65rem 0 0;
	padding: 0.65rem 0.75rem;
	max-height: 200px;
	overflow: auto;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	font-size: 0.68rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.tnt-parity-stats {
	margin: 0 0 1.5rem;
}

.tnt-parity-stat-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0.75rem 1rem;
	list-style: none;
	background: rgba(27, 27, 27, 0.04);
	border-left: 3px solid var(--tnt-gold, #e6b75d);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.tnt-parity-stat-hint {
	flex: 1 1 100%;
	font-size: 0.78rem;
	opacity: 0.85;
}

.tnt-parity-frames {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	pointer-events: none;
}

.tnt-parity-sheet-wrap {
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.tnt-parity-sheet {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.tnt-parity-sheet th,
.tnt-parity-sheet td {
	padding: 0.75rem 0.65rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.tnt-parity-sheet thead th {
	text-align: left;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: var(--tnt-stout, #1b1b1b);
	color: var(--tnt-foreground, #f4f4f4);
}

.tnt-parity-role-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tnt-parity-scope {
	font-size: 0.72rem;
	line-height: 1.4;
	font-weight: 400;
	color: var(--tnt-taupe, #665c51);
}

.tnt-parity-scope code {
	font-size: 0.68rem;
	background: rgba(0, 0, 0, 0.06);
	padding: 0.1rem 0.3rem;
	border-radius: 2px;
	word-break: break-all;
}

.tnt-parity-scope-note {
	display: inline-block;
	margin-top: 0.2rem;
}

.tnt-parity-sample {
	display: inline-block;
	padding: 0.35rem 0.5rem;
	max-width: 220px;
	line-height: 1.3;
	word-break: break-word;
	margin-bottom: 0.35rem;
}

.tnt-parity-sample--source {
	background: rgba(230, 183, 93, 0.12);
}

.tnt-parity-sample--target {
	background: rgba(0, 229, 255, 0.08);
}

.tnt-parity-dom {
	display: block;
	font-size: 0.65rem;
	font-family: ui-monospace, Menlo, monospace;
	color: var(--tnt-taupe, #665c51);
	word-break: break-all;
	line-height: 1.35;
	margin: 0;
}

.tnt-parity-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tnt-parity-pill {
	font: inherit;
	font-size: 0.68rem;
	cursor: pointer;
	border: 1px solid var(--tnt-stout, #1b1b1b);
	background: #fff;
	color: var(--tnt-stout, #1b1b1b);
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tnt-parity-pill--prop:hover {
	border-color: var(--tnt-gold, #e6b75d);
}

.tnt-parity-pill--prop.is-selected {
	background: #1a6b3c;
	border-color: #1a6b3c;
	color: #fff;
}

.tnt-parity-pill--vacuum {
	background: var(--tnt-gold, #e6b75d);
	border-color: #c9a24a;
	color: var(--tnt-stout, #1b1b1b);
	font-weight: 700;
	font-size: 0.72rem;
	padding: 0.35rem 0.85rem;
	white-space: nowrap;
}

.tnt-parity-pill--vacuum:hover:not(:disabled) {
	background: #f0c878;
}

.tnt-parity-pill--vacuum:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.tnt-parity-ok {
	color: #1a6b3c;
	font-size: 0.8rem;
}

.tnt-parity-miss {
	color: #a11;
	font-size: 0.8rem;
}

.tnt-parity-diff-cell {
	min-width: 140px;
}

.tnt-parity-actions {
	white-space: nowrap;
	vertical-align: middle;
}

.tnt-parity-sheet-caption {
	caption-side: top;
	text-align: left;
	font-size: 0.78rem;
	line-height: 1.45;
	padding: 0 0 0.75rem;
	color: var(--tnt-taupe, #665c51);
}

.tnt-parity-section-head td {
	background: rgba(27, 27, 27, 0.06);
	border-bottom: 2px solid var(--tnt-gold, #e6b75d);
	padding: 0.85rem 0.65rem !important;
}

.tnt-parity-section-title {
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}

.tnt-parity-section-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--tnt-taupe, #665c51);
}

.tnt-parity-section-col code {
	font-size: 0.68rem;
	background: rgba(0, 0, 0, 0.06);
	padding: 0.1rem 0.3rem;
	border-radius: 2px;
	word-break: break-all;
}

.tnt-parity-section-label {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.62rem;
	margin-right: 0.25rem;
}

.tnt-parity-section-counts {
	flex: 1 1 100%;
	font-variant-numeric: tabular-nums;
}

.tnt-parity-kind {
	display: inline-block;
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.1rem 0.35rem;
	border-radius: 3px;
	vertical-align: middle;
	margin-right: 0.15rem;
}

.tnt-parity-kind--manual {
	background: rgba(27, 27, 27, 0.08);
	color: var(--tnt-stout, #1b1b1b);
}

.tnt-parity-kind--disc {
	background: rgba(0, 229, 255, 0.15);
	color: #0a5a66;
}

.tnt-typo-parity-gate {
	max-width: 40rem;
	margin: 2rem auto;
	padding: 1.5rem;
	text-align: center;
}
