/* Vendora — Partner link detail page (single-vd_link.php).
   Layout: guaqi.com/link/{id} style — info + rating left,
   browser-window screenshot + action buttons right.
   2-column shell + comment styles come from article.css. */

/* Header card: main info left, screenshot right */
.vd-detail-head {
	padding: 28px;
}
.vd-detail-main {
	min-width: 0;
}
.vd-detail-idrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}
.vd-detail-logo {
	width: 88px;
	height: 88px;
	flex-shrink: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	display: grid;
	place-items: center;
}
.vd-detail-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
}
.vd-detail-logo-ph {
	font-size: 36px;
	font-weight: 800;
	color: var(--vd-primary);
}
/* Verified badge next to the title (paid listings) */
.vd-detail-verified {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #3b82f6;
	color: #fff;
	margin-left: 8px;
	vertical-align: 2px;
}
/* Legal company name under the title */
.vd-detail-legal {
	font-size: 14px;
	color: var(--vd-text-2);
	margin-bottom: 8px;
}
.vd-detail-id {
	min-width: 0;
}
.vd-detail-id h1 {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 8px;
}
.vd-detail-sub {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.vd-detail-badge {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	font-weight: 700;
	font-size: 12.5px;
	padding: 4px 12px;
	border-radius: 999px;
}
.vd-detail-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--vd-text-2);
}
/* Reuse the comment-area share button at the right of the header id-row: sit right after the claim flag, not pushed to its own far right. */
.vd-detail-idrow .vd-c-share-btn {
	margin-left: 0;
	padding: 6px 12px;
}
/* Header actions: stack the claim flag and the share button vertically, right-aligned. */
.vd-detail-actions {
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.vd-detail-actions > * {
	margin-left: 0;
}
/* Company info grid (legal rep / origin / founded / phone / website) */
.vd-detail-infogrid {
	display: flex;
	flex-wrap: wrap;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 12px;
	padding: 12px 0;
	margin-top: 18px;
	margin-bottom: 14px;
}

/* Factory photo album (after intro, before info grid). Horizontal carousel. */
.vd-gallery-wrap {
	position: relative;
	margin: 16px 0 6px;
}
.vd-detail-gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(33.333% - 6.667px);
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.vd-detail-gallery::-webkit-scrollbar {
	display: none;
}
.vd-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.vd-gallery-arrow:hover {
	background: rgba(0, 0, 0, 0.85);
}
.vd-gallery-arrow[hidden] {
	display: none;
}
.vd-gallery-prev {
	left: -8px;
}
.vd-gallery-next {
	right: -8px;
}
.vd-gallery-item {
	display: block;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--vd-border);
	background: var(--vd-inset);
	aspect-ratio: 4 / 3;
	padding: 0;
	cursor: pointer;
}
.vd-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.vd-gallery-item:hover img {
	transform: scale(1.05);
}
.vd-gallery-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 8px 5px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
	pointer-events: none;
}
.vd-gallery-more {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 12px;
	pointer-events: none;
}
.vd-gallery-zoom {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
.vd-gallery-item:hover .vd-gallery-zoom {
	opacity: 1;
}
.vd-gallery-zoom svg {
	width: 30px;
	height: 30px;
}
.vd-gallery-zoom span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Photo album lightbox. */
.vd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.vd-lightbox[hidden] {
	display: none;
}
.vd-lb-figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	max-height: 100%;
}
.vd-lb-img {
	max-width: 90vw;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.vd-lb-cap {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}
.vd-lb-count {
	position: absolute;
	top: 20px;
	left: 24px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}
.vd-lb-close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
}
.vd-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.vd-lb-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}
.vd-lb-prev {
	left: 20px;
}
.vd-lb-next {
	right: 20px;
}

/* Manufacturer capability grid (dedicated block after About this site). */
.vd-cap-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.vd-cap-item {
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vd-cap-label {
	font-size: 12px;
	color: var(--vd-text-3);
}
.vd-cap-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--vd-text);
}
@media (max-width: 640px) {
	.vd-detail-gallery {
		grid-auto-columns: calc(50% - 5px);
	}
	.vd-cap-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.vd-info-item {
	flex: 1 1 90px;
	min-width: 90px;
	padding: 0 14px;
	border-right: 1px solid var(--vd-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vd-info-item:last-child {
	border-right: 0;
}
.vd-info-label {
	font-size: 12px;
	color: var(--vd-text-3);
}
.vd-info-val {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-text);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
/* Main product tags */
.vd-detail-products {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.vd-products-label {
	font-size: 13px;
	color: var(--vd-text-2);
}
.vd-product-tag {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}
/* Product-type tag (single flat dimension, v2.44). */
.vd-product-tag.vd-tag-ice {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}
.vd-detail-intro {
	color: var(--vd-text-2);
	font-size: 14.5px;
	line-height: 1.7;
	margin-bottom: 14px;
}
.vd-detail-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.vd-detail-rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #f59e0b;
	font-size: 13px;
}
.vd-detail-rating b {
	margin-left: 6px;
	color: var(--vd-text);
}
.vd-star {
	opacity: .3;
}
.vd-star.on {
	opacity: 1;
}
/* Like button */
.vd-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	border: 1px solid var(--vd-border);
	border-radius: 999px;
	background: var(--vd-card);
	color: var(--vd-text-2);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: color .2s, border-color .2s, background .2s, transform .1s;
}
.vd-like-btn:hover {
	color: var(--vd-primary);
	border-color: var(--vd-primary-border);
	background: var(--vd-primary-soft);
}
.vd-like-btn:active {
	transform: scale( .96 );
}
.vd-like-btn.is-liked {
	color: var(--vd-primary);
	border-color: var(--vd-primary-border);
	background: var(--vd-primary-soft);
}
.vd-like-btn.is-liked svg {
	fill: currentColor;
}
.vd-like-btn:disabled {
	opacity: .6;
	cursor: default;
}
.vd-like-btn .vd-like-count {
	display: inline-block;
}
.vd-like-btn.vd-like-pop .vd-like-count {
	animation: vd-like-bump .32s ease;
}
@keyframes vd-like-bump {
	0% {
		transform: scale( 1 );
	}
	45% {
		transform: scale( 1.35 );
	}
	100% {
		transform: scale( 1 );
	}
}

/* Sidebar: submit-a-link CTA */
.vd-side-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--vd-primary);
	border-radius: var(--vd-radius-sm);
	transition: background .2s, transform .1s;
}
.vd-side-submit:hover {
	background: var(--vd-primary-2);
}
.vd-side-submit:active {
	transform: scale( .98 );
}

/* Contact / report button (right side of the meta row) */
.vd-detail-report {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vd-text-2);
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	cursor: pointer;
	font-family: inherit;
	transition: border-color .2s, color .2s;
}
.vd-detail-report:hover {
	border-color: var(--vd-primary-border);
	color: var(--vd-primary);
}
/* Claim status flag at the top-right of the title row */
.vd-claim-flag {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 700;
	font-family: inherit;
	white-space: nowrap;
	color: #b45309;
	background: #fef3c7;
	border: 1px solid #fde68a;
	border-radius: 999px;
	cursor: pointer;
	transition: filter .15s, box-shadow .15s;
}
.vd-claim-flag:hover {
	filter: brightness(0.97);
	box-shadow: 0 1px 4px rgba(180, 83, 9, .25);
}
.vd-claim-flag.is-verified {
	color: #374151;
	background: #fff;
	border-color: #d1d5db;
	font-weight: 500;
	cursor: default;
}
.vd-claim-flag.is-verified:hover {
	filter: none;
	box-shadow: none;
}
/* Pending-review flag (amber). A <button> for the applicant (opens the status
   modal), a <span> for everyone else (informational, not clickable). */
.vd-claim-flag.is-pending {
	color: #b45309;
	background: #fef3c7;
	border-color: #fde68a;
}
.vd-claim-flag.is-pending:not([id]) {
	cursor: default;
}
.vd-claim-flag.is-pending:not([id]):hover {
	filter: none;
	box-shadow: none;
}
/* Rejected flag (red) — clickable by the applicant to re-apply. */
.vd-claim-flag.is-rejected {
	color: #b91c1c;
	background: #fee2e2;
	border-color: #fecaca;
}
.vd-claim-flag.is-rejected:hover {
	filter: brightness(0.97);
	box-shadow: 0 1px 4px rgba(185, 28, 28, .25);
}
/* Owner's edit button at the top-right of the title row (same pill as the claim flags) */
.vd-detail-claim {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	border: 1px solid var(--vd-primary-border);
	border-radius: 999px;
	transition: filter .15s, box-shadow .15s;
}
.vd-detail-claim:hover {
	filter: brightness(0.97);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* ============ Claim modal ============ */
.vd-claim-modal-card {
	max-width: 520px;
}
/* Claim login gate (guests): centered card, single CTA */
.vd-claim-login-card {
	max-width: 420px;
	text-align: center;
}
.vd-claim-login-card .vd-modal-submit {
	display: block;
	margin-top: 4px;
}
.vd-claim-login-reg {
	margin: 14px 0 0;
	font-size: 13.5px;
	color: var(--vd-text-2);
}
.vd-claim-login-reg a {
	color: var(--vd-primary);
	font-weight: 600;
	text-decoration: none;
}
.vd-claim-login-reg a:hover {
	text-decoration: underline;
}
.vd-claim-site {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 12px 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	margin-bottom: 18px;
}
.vd-claim-site-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--vd-text-2);
}
.vd-claim-site input[type="url"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--vd-text);
	background: #fff;
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
}
.vd-claim-site input[type="url"]:focus {
	outline: none;
	border-color: var(--vd-primary);
}
.vd-claim-site-note {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--vd-text-2);
}
.vd-claim-steps {
	margin: 0 0 18px 20px;
	color: var(--vd-text-2);
	font-size: 14px;
	line-height: 1.7;
}
.vd-claim-steps li {
	margin-bottom: 6px;
}
.vd-claim-code-wrap {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 18px;
}
.vd-claim-code {
	flex: 1;
	padding: 12px 14px;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	color: var(--vd-text);
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	word-break: break-all;
}
.vd-claim-copy {
	padding: 0 18px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	border: 1px solid var(--vd-primary-border);
	border-radius: var(--vd-radius-sm);
	cursor: pointer;
	transition: background .2s;
}
.vd-claim-copy:hover {
	background: var(--vd-primary-soft);
	filter: brightness(0.97);
}
.vd-claim-msg {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 14px;
	border-radius: var(--vd-radius-sm);
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 16px;
}
.vd-claim-msg svg {
	flex-shrink: 0;
	margin-top: 2px;
}
.vd-claim-msg.is-err {
	color: var(--vd-red);
	background: color-mix(in srgb, var(--vd-red) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--vd-red) 30%, transparent);
}
.vd-claim-msg.is-ok {
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	border: 1px solid var(--vd-primary-border);
}
.vd-claim-form {
	display: block;
}
.vd-claim-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}
.vd-claim-cancel {
	padding: 6px 12px;
	font-size: 13.5px;
	font-weight: 600;
	font-family: inherit;
	color: var(--vd-text-2);
	background: none;
	border: none;
	border-radius: var(--vd-radius-sm);
	cursor: pointer;
}
.vd-claim-cancel:hover {
	color: var(--vd-text);
	background: var(--vd-inset);
}
/* Contact items in the meta row (phone / website) */
.vd-meta-contact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-text-2);
	white-space: nowrap;
}
.vd-meta-visit {
	text-decoration: none;
	cursor: pointer;
}
.vd-meta-visit:hover {
	text-decoration: underline;
}
/* Free plan without a confirmed backlink: owner/applicant-only hint */
.vd-meta-backlink-hint {
	font-size: 13px;
	font-weight: 500;
	color: var(--vd-amber);
	white-space: normal;
}

/* ---------- Contact / report modal ---------- */
body.vd-modal-open {
	overflow: hidden;
}
.vd-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.vd-modal[hidden] {
	display: none;
}
.vd-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 9, 9, 11, .55 );
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
}
.vd-modal-card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	background: var(--vd-card);
	border: 1px solid var(--vd-border);
	border-radius: 16px;
	padding: 26px 26px 24px;
	box-shadow: 0 24px 64px rgba( 9, 9, 11, .28 );
	animation: vd-modal-in .22s ease;
}
@keyframes vd-modal-in {
	from {
		opacity: 0;
		transform: translateY( 12px ) scale( .97 );
	}
	to {
		opacity: 1;
		transform: translateY( 0 ) scale( 1 );
	}
}
.vd-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	/* Above the modal's own content: the certificate lightbox image fills the
	   card corner and would otherwise swallow the close affordance. */
	z-index: 5;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: var(--vd-inset);
	color: var(--vd-text-2);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.vd-modal-close:hover {
	background: var(--vd-border);
	color: var(--vd-text);
}
.vd-modal-title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 8px;
	padding-right: 32px;
}
.vd-modal-hint {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--vd-text-2);
	margin-bottom: 18px;
}
.vd-modal-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vd-modal-form input,
.vd-modal-form textarea {
	width: 100%;
	padding: 11px 13px;
	font-size: 14px;
	font-family: inherit;
	color: var(--vd-text);
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	outline: none;
	transition: border-color .2s, background .2s;
	resize: vertical;
}
.vd-modal-form input:focus,
.vd-modal-form textarea:focus {
	border-color: var(--vd-primary);
	background: var(--vd-card);
}
.vd-modal-submit {
	margin-top: 4px;
	padding: 12px;
	font-size: 14.5px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--vd-primary);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.vd-modal-submit:hover {
	background: var(--vd-primary-2);
}
.vd-modal-submit:disabled {
	opacity: .6;
	cursor: default;
}
/* submitting state: spinner + "Sending…", blocks double-click */
.vd-modal-submit.is-loading {
	cursor: wait;
}
.vd-modal-submit.is-loading:hover {
	background: var(--vd-primary);
}
.vd-modal-submit.is-loading::before {
	content: '';
	width: 15px;
	height: 15px;
	flex: none;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vd-modal-spin .7s linear infinite;
}
@keyframes vd-modal-spin {
	to {
		transform: rotate(360deg);
	}
}
.vd-modal-result {
	margin-top: 4px;
	padding: 12px 14px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
	border-radius: 10px;
}
.vd-modal-result.is-ok {
	background: var(--vd-green-soft);
	border: 1px solid rgba( 22, 163, 74, .3 );
	color: var(--vd-green);
}
.vd-modal-result.is-err {
	background: var(--vd-red-soft);
	border: 1px solid rgba( 220, 38, 38, .3 );
	color: var(--vd-red);
}

/* ---------- Trust score / reputation panel ---------- */
.vd-trust {
	padding: 24px;
}
.vd-trust-main {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	align-items: center;
}
.vd-trust-score {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 130px;
}
.vd-trust-num {
	font-size: 46px;
	font-weight: 800;
	line-height: 1;
	color: var(--vd-text);
}
.vd-trust-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--vd-text-2);
}
.vd-trust-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #f59e0b;
	margin-top: 2px;
}
.vd-trust-count {
	font-size: 13px;
	color: var(--vd-text-3);
	margin-top: 2px;
}
.vd-trust-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vd-trust-bar-row {
	display: grid;
	grid-template-columns: 44px 1fr;
	align-items: center;
	gap: 12px;
}
.vd-trust-bar-label {
	font-size: 13px;
	color: var(--vd-text-2);
}
.vd-trust-bar-track {
	display: block;
	height: 8px;
	background: var(--vd-inset);
	border-radius: 999px;
	overflow: hidden;
}
.vd-trust-bar-fill {
	display: block;
	height: 100%;
	background: var(--vd-green);
	border-radius: 999px;
}
.vd-trust-calc {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--vd-border);
	font-size: 13.5px;
	font-weight: 600;
}
.vd-trust-calc-ico {
	display: inline-flex;
	color: var(--vd-text-3);
}
.vd-trust-calc-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--vd-text-3);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.vd-trust-calc-btn:hover {
	color: var(--vd-primary);
}
/* Review policy notice (subtle, no background). */
.vd-trust-policy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 14px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--vd-text-3);
}
.vd-trust-policy-ico {
	flex: none;
	display: inline-flex;
	margin-top: 1px;
	color: var(--vd-text-3);
}
.vd-trust-policy-text a {
	color: var(--vd-text-2);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.vd-trust-policy-text a:hover {
	color: var(--vd-primary);
}
/* TrustScore explanation modal: factor list. */
.vd-trustscore-factors {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
}
.vd-trustscore-factor {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.vd-trustscore-factor-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--vd-inset);
	color: var(--vd-primary);
}
.vd-trustscore-factor strong {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
}
.vd-trustscore-factor p {
	margin: 0;
	font-size: 13px;
	color: var(--vd-text-2);
	line-height: 1.55;
}
.vd-trustscore-note {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--vd-inset);
	font-size: 12.5px;
	color: var(--vd-text-2);
	line-height: 1.55;
}
/* Reputation notes: collapsible rows inside the trust card. */
.vd-trust-notes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--vd-border);
}
.vd-trust-note {
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	background: var(--vd-inset);
	overflow: hidden;
}
.vd-trust-note-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.vd-trust-note-head::-webkit-details-marker {
	display: none;
}
.vd-trust-note-ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #fff;
	color: var(--vd-primary);
}
.vd-trust-note-title {
	flex: 1;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--vd-text);
}
.vd-trust-note-arrow {
	flex: none;
	display: inline-flex;
	color: var(--vd-text-3);
	transition: transform .2s ease;
}
.vd-trust-note[open] .vd-trust-note-arrow {
	transform: rotate(90deg);
}
.vd-trust-note-body {
	padding: 0 14px 14px 62px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--vd-text-2);
}
.vd-trust-note-body p {
	margin: 0 0 10px;
}
.vd-trust-note-body p:last-child {
	margin-bottom: 0;
}
.vd-trust-note-body a {
	color: var(--vd-primary);
	text-decoration: underline;
}
@media (max-width: 600px) {
	.vd-trust-main {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.vd-trust-score {
		align-items: center;
	}
}

/* ---------- Certificates: peek rail + lightbox gallery ---------- */
.vd-cert-rail-wrap {
	position: relative;
	margin: 6px 0 0;
	/* Inset the rail to line up with the padded card head; otherwise the
	   cards run flush against the card's left/right edges. */
	padding: 0 24px;
}
.vd-cert-rail {
	--cert-gap: 14px;
	--cert-peek: 2.5;
	display: flex;
	gap: var( --cert-gap );
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 2px 2px 8px;
	scrollbar-width: none;
}
.vd-cert-rail::-webkit-scrollbar {
	display: none;
}
/* Uniform 3:4 cards, ~2.5 visible so the half card hints at more. */
.vd-cert-item {
	position: relative;
	flex: 0 0 auto;
	width: calc( ( 100% - var( --cert-gap ) * 2 ) / var( --cert-peek ) );
	min-width: 148px;
	aspect-ratio: 3 / 4;
	padding: 0;
	margin: 0;
	border: 1px solid var( --vd-border );
	border-radius: 14px;
	background: var( --vd-inset );
	overflow: hidden;
	cursor: zoom-in;
	scroll-snap-align: start;
}
.vd-cert-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .35s ease;
}
.vd-cert-item:hover img,
.vd-cert-item:focus-visible img {
	transform: scale( 1.05 );
}
.vd-cert-zoom {
	position: absolute;
	left: 9px;
	bottom: 9px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: rgba( 9, 9, 11, .45 );
	border-radius: 999px;
	transition: background .25s ease;
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
	pointer-events: none;
}
.vd-cert-item:hover .vd-cert-zoom,
.vd-cert-item:focus-visible .vd-cert-zoom {
	background: rgba( 9, 9, 11, .72 );
}
.vd-cert-no {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	color: var( --vd-text );
	background: rgba( 255, 255, 255, .88 );
	border-radius: 999px;
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
}
/* Overlay arrows, vertically centered on the cards. */
.vd-cert-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var( --vd-border );
	border-radius: 50%;
	background: rgba( 255, 255, 255, .94 );
	color: var( --vd-text );
	box-shadow: 0 6px 18px rgba( 16, 24, 40, .16 );
	cursor: pointer;
	z-index: 3;
	transition: background .2s ease, transform .2s ease;
	-webkit-backdrop-filter: blur( 4px );
	backdrop-filter: blur( 4px );
}
.vd-cert-nav:hover {
	background: #fff;
	transform: translateY( -50% ) scale( 1.07 );
}
.vd-cert-nav[hidden] {
	display: none;
}
.vd-cert-nav svg {
	flex: 0 0 auto;
}
.vd-cert-prev {
	left: 12px;
}
.vd-cert-next {
	right: 12px;
}
.vd-cert-next svg {
	transform: rotate( 180deg );
}

/* Lightbox */
.vd-cert-modal .vd-cert-card {
	/* Hug the image: the shared modal card is width:100%, which would stretch
	   this one to the full cap and leave large empty margins around a small
	   certificate. fit-content keeps the frame tight on every image size. */
	width: fit-content;
	max-width: min( 94vw, 980px );
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vd-cert-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
}
.vd-cert-stage img {
	display: block;
	max-width: 100%;
	max-height: calc( 100vh - 215px );
	width: auto;
	height: auto;
	border-radius: 10px;
	background: var( --vd-inset );
	object-fit: contain;
}
.vd-cert-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
}
.vd-cert-lb-nav:hover {
	transform: translateY( -50% ) scale( 1.07 );
}
.vd-cert-lb-prev {
	left: 4px;
}
.vd-cert-lb-next {
	right: 4px;
}
/* Both lightbox buttons use the arrow-left glyph; flip the "next" one to point
   right, mirroring the rail's .vd-cert-next svg rule. */
.vd-cert-lb-next svg {
	transform: rotate( 180deg );
}
.vd-cert-lb-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}
/* Same flex-vs-hidden caveat as the rail control row. */
.vd-cert-lb-foot[hidden] {
	display: none;
}
.vd-cert-lb-count {
	font-size: 12.5px;
	font-weight: 800;
	color: var( --vd-text-2 );
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.vd-cert-thumbs {
	display: flex;
	gap: 8px;
	/* Capped so a long certificate list scrolls here instead of widening the
	   fit-content card and re-introducing empty margins around the image. */
	max-width: min( 100%, 420px );
	min-width: 0;
	overflow-x: auto;
	padding: 2px;
	scrollbar-width: thin;
}
.vd-cert-thumbs:empty {
	display: none;
}
.vd-cert-tb {
	flex: 0 0 auto;
	width: 42px;
	height: 56px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: var( --vd-inset );
	overflow: hidden;
	cursor: pointer;
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease;
}
.vd-cert-tb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vd-cert-tb:hover {
	opacity: 1;
}
.vd-cert-tb.active {
	opacity: 1;
	border-color: var( --vd-primary );
}
/* Below the theme's sidebar breakpoint the content column runs to the viewport
   edge, where the fixed .vd-rail floating buttons sit — the overlay next arrow
   would land under them and be unclickable. Drop the rail arrows there and let
   the (already swipeable) rail + peek do the work. Lightbox arrows are untouched
   (they use .vd-cert-lb-*). */
@media ( max-width: 1199px ) {
	.vd-cert-prev,
	.vd-cert-next {
		display: none;
	}
}
@media ( max-width: 640px ) {
	.vd-cert-rail {
		--cert-gap: 12px;
		--cert-peek: 1.7;
	}
	.vd-cert-item {
		min-width: 122px;
	}
	.vd-cert-nav {
		width: 33px;
		height: 33px;
	}
	.vd-cert-zoom {
		left: 7px;
		bottom: 7px;
		padding: 4px 8px;
		font-size: 11px;
	}
	.vd-cert-stage img {
		max-height: calc( 100vh - 250px );
	}
}

/* Full description block */
.vd-detail-block {
	padding: 24px;
}
.vd-detail-block h2 {
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 12px;
}
.vd-detail-about {
	color: var(--vd-text-2);
	font-size: 15px;
	line-height: 1.7;
}
.vd-detail-about p {
	margin: 0 0 14px;
}
.vd-detail-about p:last-child {
	margin-bottom: 0;
}

/* Sidebar: latest links list */
.vd-latest {
	display: flex;
	flex-direction: column;
}
.vd-latest-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--vd-border);
	text-decoration: none;
}
.vd-latest-item:first-child {
	padding-top: 4px;
}
.vd-latest-item:last-child {
	border-bottom: none;
	padding-bottom: 4px;
}
.vd-latest-logo {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	display: grid;
	place-items: center;
}
.vd-latest-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}
.vd-latest-logo-ph {
	font-size: 17px;
	font-weight: 800;
	color: var(--vd-primary);
}
.vd-latest-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}
.vd-latest-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vd-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vd-latest-item:hover .vd-latest-name {
	color: var(--vd-primary);
}
.vd-latest-desc {
	font-size: 12px;
	color: var(--vd-text-3);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vd-latest-likes {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--vd-text-3);
}
.vd-latest-empty {
	font-size: 13px;
	color: var(--vd-text-3);
	padding: 8px 0;
}

/* Back link */
.vd-detail-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: var(--vd-text-2);
	text-decoration: none;
	transition: color .2s;
}
.vd-detail-back:hover {
	color: var(--vd-primary);
}

/* Responsive */
@media (max-width: 600px) {
	.vd-detail-report {
		margin-left: 0;
		width: 100%;
	}
	.vd-detail-idrow {
		flex-wrap: wrap;
		align-items: flex-start;
	}
	/* Keep logo + title/company on one row; move actions to a full-width row below. */
	.vd-detail-id {
		flex: 1 1 0;
		min-width: 0;
	}
	.vd-detail-actions {
		flex-basis: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		margin-left: 0;
	}
	.vd-claim-flag {
		margin-left: 0;
	}
}

/* FAQ accordion (free and paid plans) */
.vd-faq-list {
	display: flex;
	flex-direction: column;
	padding: 4px 24px 22px;
}
.vd-faq-item {
	border-bottom: 1px solid var(--vd-border);
}
.vd-faq-item:last-child {
	border-bottom: none;
}
.vd-faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--vd-text);
}
.vd-faq-item summary::-webkit-details-marker {
	display: none;
}
.vd-faq-item summary::after {
	content: "+";
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--vd-text-2);
	flex: 0 0 auto;
	transition: transform .2s, color .2s;
}
.vd-faq-item summary:hover,
.vd-faq-item[open] summary {
	color: var(--vd-primary);
}
.vd-faq-item[open] summary::after {
	transform: rotate(45deg);
	color: var(--vd-primary);
}
.vd-faq-a {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--vd-text-2);
}
