/* 3D-Labs Reviews — self-contained, inherits the theme's typography. */
.tdlr {
	--tdlr-star: #f0a429;
	--tdlr-star-off: #d8dce2;
	--tdlr-line: #e3e7ec;
	--tdlr-muted: #5d6a7a;
	--tdlr-accent: #1f4e79;
	--tdlr-bg: #f7f9fb;
	--tdlr-radius: 10px;
	margin: 48px 0 8px;
	padding-top: 32px;
	border-top: 1px solid var(--tdlr-line);
	font-size: 16px;
	line-height: 1.6;
	color: inherit;
}
.tdlr *, .tdlr *::before, .tdlr *::after { box-sizing: border-box; }
.tdlr .tdlr-title { margin: 0 0 18px; font-size: 1.6em; line-height: 1.25; }

/* ---------- summary ---------- */
.tdlr-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	padding: 20px 24px;
	background: var(--tdlr-bg);
	border: 1px solid var(--tdlr-line);
	border-radius: var(--tdlr-radius);
}
.tdlr-score { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.tdlr-score-num { font-size: 2.6em; font-weight: 700; line-height: 1; color: var(--tdlr-accent); }
.tdlr-score-count { font-size: 0.85em; color: var(--tdlr-muted); }
.tdlr-bars { flex: 1 1 260px; display: flex; flex-direction: column; gap: 5px; min-width: 240px; }
.tdlr-bar { display: flex; align-items: center; gap: 10px; font-size: 0.85em; color: var(--tdlr-muted); }
.tdlr-bar-label { white-space: nowrap; width: 34px; }
.tdlr-bar-label span { color: var(--tdlr-star); }
.tdlr-bar-track { flex: 1; height: 8px; background: var(--tdlr-star-off); border-radius: 99px; overflow: hidden; }
.tdlr-bar-fill { display: block; height: 100%; background: var(--tdlr-star); border-radius: 99px; }
.tdlr-bar-count { width: 26px; text-align: right; }
.tdlr-empty { margin: 0 0 4px; color: var(--tdlr-muted); }

/* ---------- stars ---------- */
.tdlr-stars { display: inline-flex; gap: 1px; letter-spacing: 1px; font-size: 1.05em; }
.tdlr-star { color: var(--tdlr-star-off); line-height: 1; }
.tdlr-star.is-full { color: var(--tdlr-star); }
.tdlr-star.is-half {
	background: linear-gradient(90deg, var(--tdlr-star) 50%, var(--tdlr-star-off) 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tdlr-stars-num { margin-left: 6px; font-weight: 600; }

/* ---------- list ---------- */
.tdlr-list { list-style: none; margin: 26px 0 0; padding: 0; }
.tdlr-item { padding: 20px 0; border-bottom: 1px solid var(--tdlr-line); }
.tdlr-item.is-hidden { display: none; }
.tdlr-item-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tdlr-item-title { margin: 0; font-size: 1.05em; font-weight: 600; }
.tdlr-item-body { margin: 8px 0 10px; }
.tdlr-item-body p { margin: 0 0 8px; }
.tdlr-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85em; color: var(--tdlr-muted); }
.tdlr-item-meta > * + *::before { content: "·"; margin-right: 8px; }
.tdlr-author { font-weight: 600; color: inherit; }
.tdlr-badge {
	padding: 2px 8px;
	background: #e8f3ec;
	color: #1d6b3c;
	border-radius: 99px;
	font-size: 0.92em;
	font-weight: 600;
}
.tdlr-item-meta .tdlr-badge::before { content: none; }
.tdlr-more {
	margin-top: 18px;
	padding: 10px 20px;
	background: none;
	border: 1px solid var(--tdlr-accent);
	border-radius: 6px;
	color: var(--tdlr-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tdlr-more:hover { background: var(--tdlr-accent); color: #fff; }

/* ---------- notices ---------- */
.tdlr-notice { margin: 18px 0; padding: 14px 18px; border-radius: 8px; border-left: 4px solid; }
.tdlr-notice--success { background: #eaf6ee; border-color: #2e7d4f; color: #1d5634; }
.tdlr-notice--error { background: #fdeceb; border-color: #c0392b; color: #8e2a20; }

/* ---------- form ---------- */
.tdlr-form-wrap {
	margin-top: 34px;
	padding: 26px;
	background: var(--tdlr-bg);
	border: 1px solid var(--tdlr-line);
	border-radius: var(--tdlr-radius);
}
.tdlr-form-title { margin: 0 0 6px; font-size: 1.25em; }
.tdlr-form-intro { margin: 0 0 20px; font-size: 0.92em; color: var(--tdlr-muted); }
.tdlr-field { margin: 0 0 18px; display: block; }
.tdlr-field > label, .tdlr-field > legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.92em; }
.tdlr-req { color: #c0392b; }
.tdlr-field input[type="text"],
.tdlr-field input[type="email"],
.tdlr-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #c8d0d9;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.95em;
	color: inherit;
}
.tdlr-field input:focus, .tdlr-field textarea:focus {
	outline: 2px solid var(--tdlr-accent);
	outline-offset: 1px;
	border-color: var(--tdlr-accent);
}
.tdlr-field textarea { resize: vertical; min-height: 120px; }
.tdlr-help { display: block; margin-top: 5px; font-size: 0.8em; color: var(--tdlr-muted); }
.tdlr-row { display: flex; flex-wrap: wrap; gap: 18px; }
.tdlr-row .tdlr-field { flex: 1 1 220px; }
.tdlr-field--rating { border: 0; padding: 0; margin: 0 0 18px; }

/* star picker: rendered 5..1 so CSS sibling selectors can light up to the left */
.tdlr-rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.tdlr-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tdlr-rating-input label {
	font-size: 30px;
	line-height: 1;
	color: var(--tdlr-star-off);
	cursor: pointer;
	transition: color .12s ease;
}
.tdlr-rating-input input:checked ~ label,
.tdlr-rating-input label:hover,
.tdlr-rating-input label:hover ~ label { color: var(--tdlr-star); }
.tdlr-rating-input input:focus-visible + label { outline: 2px solid var(--tdlr-accent); outline-offset: 2px; }

.tdlr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tdlr-submit { margin: 4px 0 0; }
.tdlr-btn {
	padding: 13px 30px;
	background: var(--tdlr-accent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tdlr-btn:hover { filter: brightness(1.12); }
.tdlr-btn[disabled] { opacity: .6; cursor: default; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.tdlr { margin-top: 36px; }
	.tdlr-summary { padding: 16px; gap: 18px; }
	.tdlr-score-num { font-size: 2.2em; }
	.tdlr-form-wrap { padding: 18px; }
	.tdlr-rating-input label { font-size: 34px; }
}

@media (prefers-color-scheme: dark) {
	.tdlr:not([data-tdlr-theme="light"]) {
		--tdlr-line: #333b45;
		--tdlr-muted: #9aa7b5;
		--tdlr-bg: #1c2128;
		--tdlr-accent: #6fa8dc;
		--tdlr-star-off: #3b434d;
	}
	.tdlr:not([data-tdlr-theme="light"]) .tdlr-field input,
	.tdlr:not([data-tdlr-theme="light"]) .tdlr-field textarea {
		background: #12161b;
		border-color: #3b434d;
		color: #e6eaf0;
	}
	.tdlr:not([data-tdlr-theme="light"]) .tdlr-btn { color: #0d1117; }
	.tdlr:not([data-tdlr-theme="light"]) .tdlr-badge { background: #1d3828; color: #7fd1a0; }
}
