/*
 * Dependency-free fallback styles for plugin components.
 *
 * The approved child theme adds body.drbt-site and owns the frozen V2 design.
 * Aesthetic fallback rules intentionally exclude that body class so they cannot
 * override the approved theme. Security/accessibility and iframe containment
 * hooks remain active everywhere.
 */

body:not(.drbt-site) .drbt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border: 2px solid #7c2b55;
	border-radius: 999px;
	background: #7c2b55;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

body:not(.drbt-site) .drbt-button:hover,
body:not(.drbt-site) .drbt-button:focus-visible {
	background: #5d1f40;
	border-color: #5d1f40;
	color: #fff;
}

body:not(.drbt-site) .drbt-button:focus-visible,
body:not(.drbt-site) .drbt-contact__form :is(input, textarea, button):focus-visible,
body:not(.drbt-site) .drbt-resources a:focus-visible,
.drbt-embed a:focus-visible {
	outline: 3px solid #1e6b75;
	outline-offset: 3px;
}

body:not(.drbt-site) .drbt-button--light {
	background: #fff;
	color: #7c2b55;
}

body:not(.drbt-site) .drbt-contact__form {
	display: grid;
	gap: 1rem;
	max-width: 760px;
}

body:not(.drbt-site) .drbt-contact__form label {
	display: grid;
	gap: 0.4rem;
	font-weight: 700;
}

body:not(.drbt-site) .drbt-contact__form :is(input, textarea) {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	border: 1px solid #765f67;
	border-radius: 8px;
	background: #fff;
	color: #241d20;
	font: inherit;
	font-size: 1rem;
	padding: 0.75rem;
}

body:not(.drbt-site) .drbt-contact__form textarea {
	min-height: 150px;
	resize: vertical;
}

body:not(.drbt-site) .drbt-contact__consent {
	grid-template-columns: auto 1fr;
	align-items: start;
}

body:not(.drbt-site) .drbt-contact__consent input {
	width: 1.25rem;
	min-height: 1.25rem;
	margin-top: 0.15rem;
}

.drbt-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

body:not(.drbt-site) .drbt-status {
	padding: 0.85rem 1rem;
	border-left: 4px solid #1e6b75;
	background: #f4fbfc;
}

body:not(.drbt-site) .drbt-status--error {
	border-color: #a52424;
	background: #fff4f4;
}

body:not(.drbt-site) .drbt-resources {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border-radius: 16px;
	background: #7c2b55;
	color: #fff;
}

body:not(.drbt-site) .drbt-resources h2 {
	color: inherit;
}

body:not(.drbt-site) .drbt-resources__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

body:not(.drbt-site) .drbt-eyebrow {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.drbt-embed {
	width: 100%;
	margin-top: 1rem;
}

.drbt-embed__frame {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 0;
	border-radius: 12px;
	background: #fff;
}

.drbt-embed__fallback {
	font-size: 0.95rem;
}

body:not(.drbt-site) .drbt-video-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

body:not(.drbt-site) .drbt-video-card {
	overflow: hidden;
	border: 1px solid rgba(80, 52, 64, 0.18);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(54, 31, 41, 0.08);
}

body:not(.drbt-site) .drbt-video-card video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #241d20;
}

body:not(.drbt-site) .drbt-video-card__copy {
	padding: 1rem;
}

body:not(.drbt-site) .drbt-reviewed-article-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

body:not(.drbt-site) .drbt-reviewed-article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	padding: 1rem;
	border: 1px solid rgba(80, 52, 64, 0.18);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(54, 31, 41, 0.08);
}

body:not(.drbt-site) .drbt-reviewed-article-card .card-image,
body:not(.drbt-site) .drbt-reviewed-article-card .card-image img {
	display: block;
	width: 100%;
}

body:not(.drbt-site) .drbt-reviewed-article-card .card-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body:not(.drbt-site) .drbt-reviewed-article-card .text-link {
	margin-top: auto;
	font-size: 1rem;
	font-weight: 700;
}

@media (max-width: 800px) {
	body:not(.drbt-site) .drbt-resources {
		grid-template-columns: 1fr;
	}

	body:not(.drbt-site) .drbt-video-gallery,
	body:not(.drbt-site) .drbt-reviewed-article-cards {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.drbt-embed__frame,
	body:not(.drbt-site) .drbt-button {
		scroll-behavior: auto;
		transition: none !important;
	}
}
