/* Tillpress accessibility checker. Colours pass WCAG AA on white. */
.tpa-checker {
	--tpa-ink: #1d2939;
	--tpa-muted: #475467;
	--tpa-line: #d0d5dd;
	--tpa-soft: #f9fafb;
	--tpa-accent: var(--wp--preset--color--primary, #1f4fd1);
	--tpa-critical: #b42318;
	--tpa-serious: #b54708;
	--tpa-moderate: #175cd3;
	--tpa-minor: #475467;
	--tpa-good: #067647;
	color: var(--tpa-ink);
	max-width: 760px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.55;
}
.tpa-checker *, .tpa-checker *::before, .tpa-checker *::after { box-sizing: border-box; }
.tpa-checker [hidden] { display: none !important; }
.tpa-form { margin: 0; }
.tpa-url-label, .tpa-field > label, .tpa-field legend { display: block; font-weight: 600; margin: 0 0 6px; }
.tpa-url-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tpa-url-row input { flex: 1 1 260px; min-width: 0; }
.tpa-checker input[type="text"], .tpa-checker input[type="email"] {
	width: 100%;
	font: inherit;
	padding: 12px 14px;
	min-height: 48px;
	border: 1px solid #667085;
	border-radius: 8px;
	background: #fff;
	color: var(--tpa-ink);
}
.tpa-url-row input { width: auto; }
.tpa-checker input:focus-visible, .tpa-checker button:focus-visible, .tpa-checker a:focus-visible {
	outline: 3px solid var(--tpa-accent);
	outline-offset: 2px;
}
.tpa-button {
	font: inherit;
	font-weight: 600;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--tpa-accent);
	color: #fff;
	cursor: pointer;
}
.tpa-button:hover { filter: brightness(0.92); }
.tpa-button[disabled] { opacity: 0.65; cursor: progress; }
.tpa-small { font-size: 0.875rem; color: var(--tpa-muted); margin: 8px 0 0; }
.tpa-optional { font-weight: 400; color: var(--tpa-muted); }
.tpa-status { margin: 10px 0 0; font-weight: 600; min-height: 1.5em; }
.tpa-status.tpa-error { color: var(--tpa-critical); }
.tpa-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tpa-turnstile:not(:empty) { margin-top: 12px; }

.tpa-results { margin: 32px 0 0; padding: 24px; border: 1px solid var(--tpa-line); border-radius: 12px; background: #fff; }
.tpa-results h2 { margin: 0 0 16px; font-size: 1.5rem; }
.tpa-scorecard { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tpa-score { margin: 0; font-size: 3.5rem; font-weight: 800; line-height: 1; }
.tpa-score-of { font-size: 1.25rem; font-weight: 600; color: var(--tpa-muted); }
.tpa-results[data-grade="good"] .tpa-score-num { color: var(--tpa-good); }
.tpa-results[data-grade="ok"] .tpa-score-num { color: var(--tpa-serious); }
.tpa-results[data-grade="poor"] .tpa-score-num { color: var(--tpa-critical); }
.tpa-grade { margin: 0; font-weight: 700; font-size: 1.125rem; }
.tpa-page { margin: 0 0 6px; color: var(--tpa-muted); word-break: break-all; font-size: 0.9375rem; }
.tpa-counts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: 0.9375rem; }
.tpa-counts .tpa-sev-critical strong { color: var(--tpa-critical); }
.tpa-counts .tpa-sev-serious strong { color: var(--tpa-serious); }
.tpa-counts .tpa-sev-moderate strong { color: var(--tpa-moderate); }
.tpa-issues { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: tpa; }
.tpa-issue { border-top: 1px solid var(--tpa-line); padding: 16px 0; }
.tpa-issue p { margin: 0 0 6px; }
.tpa-issue-title { margin: 4px 0 8px; font-size: 1.125rem; }
.tpa-issue-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.8125rem; }
.tpa-issue-count { color: var(--tpa-muted); }
.tpa-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
.tpa-badge-critical { background: var(--tpa-critical); }
.tpa-badge-serious { background: var(--tpa-serious); }
.tpa-badge-moderate { background: var(--tpa-moderate); }
.tpa-badge-minor { background: var(--tpa-minor); }
.tpa-badge-woo { background: #6941c6; }
.tpa-auto { font-size: 0.875rem; color: var(--tpa-muted); padding-left: 12px; border-left: 3px solid var(--tpa-line); }
.tpa-auto-yes { border-left-color: var(--tpa-good); }
.tpa-more { font-weight: 600; }
.tpa-report-box { margin: 20px 0; padding: 20px; border-radius: 10px; background: var(--tpa-soft); border: 1px solid var(--tpa-line); }
.tpa-report-box h3 { margin: 0 0 6px; font-size: 1.25rem; }
.tpa-report-box p { margin: 0 0 12px; }
.tpa-field { margin: 0 0 12px; border: 0; padding: 0; }
.tpa-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 0.9375rem; }
.tpa-check input, .tpa-sites input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.tpa-sites label { display: inline-flex; gap: 6px; align-items: center; margin: 0 16px 6px 0; min-height: 32px; }
.tpa-teaser { font-weight: 600; }
.tpa-disclaimer { font-size: 0.875rem; color: var(--tpa-muted); }
.tpa-waitlist { margin: 40px 0 0; padding: 24px; border-radius: 12px; background: var(--tpa-soft); border: 1px solid var(--tpa-line); }
.tpa-waitlist h2 { margin: 0 0 8px; font-size: 1.5rem; }
.tpa-waitlist > p { margin: 0 0 16px; }
@media (max-width: 480px) {
	.tpa-results, .tpa-waitlist { padding: 16px; }
	.tpa-url-row .tpa-button { width: 100%; }
	.tpa-score { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .tpa-checker * { scroll-behavior: auto !important; } }
.tpa-results:focus { outline: none; }
