/* Tap to Verify widget (v0.7.82).
   The interactive SP Verified badge: the mark, the ritual line, and
   the live answer card. Brand system matches the packet and record
   pages: navy #0D2B6C, blue #1A3F92, wash #F1F5FE, line #D8E2F7,
   gold #E9A13B (the trust-mark gold, kept on purpose: v0.7.112 recolored accents site-wide to softer orange #F5853C, but the verified seal family keeps its gold). The animation is the invitation only; the verified
   presentation is applied solely from a live status API answer. */

.spp-tap-verify {
	--spp-tv-navy: #0D2B6C;
	--spp-tv-blue: #1A3F92;
	--spp-tv-wash: #F1F5FE;
	--spp-tv-line: #D8E2F7;
	--spp-tv-ink: #1C2733;
	--spp-tv-muted: #64748B;
	--spp-tv-gold: #E9A13B;
	position: relative;
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--spp-tv-ink);
	line-height: 1.5;
	text-align: center;
}
.spp-tap-verify.spp-tv--align-left { text-align: left; }
.spp-tap-verify * { box-sizing: border-box; }

/* The badge itself: a real link (no-JS goes to the record), enhanced
   in place by tap-verify.js. Minimum 44px tap target. */
.spp-tv-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 4px;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.spp-tv--align-left .spp-tv-badge { align-items: flex-start; }
.spp-tv-badge:focus-visible { outline: 2px solid var(--spp-tv-blue); outline-offset: 3px; border-radius: 14px; }

.spp-tv-mark {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 22%;
	line-height: 0;
}
.spp-tv-mark img { display: block; border: 0; }
.spp-tv--md .spp-tv-mark img { width: 120px; height: 120px; }
.spp-tv--sm .spp-tv-mark img { width: 64px; height: 64px; }
.spp-tv--hero .spp-tv-mark img { width: 52px; height: 52px; }

/* Sheen sweep: a light band crosses the seal on hover/focus. */
.spp-tv-mark::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	transform: translateX(-120%);
	pointer-events: none;
}
.spp-tv-badge:hover .spp-tv-mark::after,
.spp-tv-badge:focus-visible .spp-tv-mark::after {
	animation: spp-tv-sheen 0.9s ease;
}
@keyframes spp-tv-sheen {
	from { transform: translateX(-120%); }
	to { transform: translateX(120%); }
}

/* Seal pulse while a live check is in flight. */
.spp-tap-verify.spp-tv--checking .spp-tv-mark {
	animation: spp-tv-pulse 1.1s ease-in-out infinite;
}
@keyframes spp-tv-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(233, 161, 59, 0.55); }
	50% { box-shadow: 0 0 0 10px rgba(233, 161, 59, 0); }
}

.spp-tv-cta {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--spp-tv-blue);
}
.spp-tv-badge:hover .spp-tv-cta { color: var(--spp-tv-navy); text-decoration: underline; }

/* The answer panel (v0.7.185): a fixed, centered modal with a
   backdrop. It was a popover under the badge until the record
   page's overflow:hidden slab clipped the closing badge's
   popover whole and the tap read as inert. The script portals
   the panel to <body>, so no page frame can clip it. */
.spp-tv-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	box-sizing: border-box;
	background: rgba(10, 30, 66, 0.55);
}
.spp-tv-backdrop[hidden] { display: none; }
.spp-tv-card {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001;
	/* The panel is portaled to <body>, outside the widget root,
	   so it cannot inherit the root's border-box rule: carry it. */
	box-sizing: border-box;
	width: 340px;
	max-width: 92vw;
	max-height: 88vh;
	overflow-y: auto;
	background: #FFFFFF;
	border: 1px solid var(--spp-tv-line);
	border-top: 4px solid var(--spp-tv-navy);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(13, 43, 108, 0.22);
	padding: 22px 22px 18px;
	text-align: center;
}
.spp-tv-card[hidden] { display: none; }

/* Panel contents: the badge, the speaker's name, the status
   line, and the live facts. */
.spp-tv-panel-badge { line-height: 0; margin: 0 0 10px; }
.spp-tv-panel-badge img { width: 64px; height: 64px; border-radius: 22%; }
.spp-tv-panel-name {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--spp-tv-navy);
	letter-spacing: -0.01em;
}
.spp-tv-panel-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--spp-tv-ink);
}
.spp-tv-count {
	margin: 0 0 8px;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--spp-tv-navy);
}
.spp-tv-smallprint {
	margin: 10px 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--spp-tv-muted);
}
.spp-tv-example {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--spp-tv-gold);
	color: var(--spp-tv-navy);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.spp-tv-card-status {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 6px;
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--spp-tv-navy);
	letter-spacing: -0.01em;
}
.spp-tv-dot {
	flex: none;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--spp-tv-muted);
}
.spp-tv-card--verified { border-top-color: var(--spp-tv-gold); }
.spp-tv-card--verified .spp-tv-dot { background: var(--spp-tv-gold); box-shadow: 0 0 0 4px rgba(233, 161, 59, 0.22); }
.spp-tv-card--revoked,
.spp-tv-card--expired { border-top-color: #B3261E; }
.spp-tv-card--revoked .spp-tv-card-status,
.spp-tv-card--expired .spp-tv-card-status { color: #8B1A1A; }
.spp-tv-card--revoked .spp-tv-dot,
.spp-tv-card--expired .spp-tv-dot { background: #B3261E; }
.spp-tv-card--disputed { border-top-color: #B3261E; }
.spp-tv-card--disputed .spp-tv-dot { background: #B3261E; }

.spp-tv-card p { margin: 0 0 8px; font-size: 0.92rem; }
.spp-tv-card .spp-tv-fact { color: var(--spp-tv-ink); }
.spp-tv-card .spp-tv-asof { color: var(--spp-tv-muted); font-size: 0.82rem; }
.spp-tv-card .spp-tv-tagline {
	margin: 10px 0 12px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--spp-tv-blue);
}
.spp-tv-card-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 0; }
.spp-tv-card-links a {
	color: var(--spp-tv-blue);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border-bottom: 1px solid var(--spp-tv-line);
	padding-bottom: 1px;
}
.spp-tv-card-links a:hover { border-color: var(--spp-tv-blue); }
.spp-tv-card-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	color: var(--spp-tv-muted);
	font-size: 1.15rem;
	line-height: 1;
	padding: 6px;
	cursor: pointer;
	font-family: inherit;
}
.spp-tv-card-close:hover { color: var(--spp-tv-navy); }

/* Checking state shimmer line. */
.spp-tv-card .spp-tv-checking { color: var(--spp-tv-muted); }
.spp-tap-verify.spp-tv--checking .spp-tv-checking::after {
	content: "...";
	animation: spp-tv-dots 1.2s steps(4) infinite;
}
@keyframes spp-tv-dots {
	0% { content: ""; }
	33% { content: "."; }
	66% { content: ".."; }
	100% { content: "..."; }
}

@media (max-width: 480px) {
	.spp-tv-card { width: 92vw; padding: 20px 16px 16px; }
}

/* Reduced motion: no sweep, no pulse, instant state change. */
@media (prefers-reduced-motion: reduce) {
	.spp-tv-badge:hover .spp-tv-mark::after,
	.spp-tv-badge:focus-visible .spp-tv-mark::after { animation: none; }
	.spp-tap-verify.spp-tv--checking .spp-tv-mark { animation: none; }
	.spp-tap-verify.spp-tv--checking .spp-tv-checking::after { animation: none; content: "..."; }
}
