/**
 * Debt Product Reviews — component styles for block class names.
 * Colors, type, and spacing still come from theme.json / Styles.
 */

.dpr-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.is-style-page-hero {
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
}

.wp-block-details.is-style-faq-item + .wp-block-details.is-style-faq-item {
	margin-top: 0.65rem;
}

.dpr-disclosure a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wp-block-site-title a {
	letter-spacing: -0.02em;
}

/* Review ranking card */
.is-style-review-card,
.is-style-review-card-featured {
	overflow: hidden;
}

.is-style-review-card .wp-block-columns,
.is-style-review-card-featured .wp-block-columns {
	margin-bottom: 0;
}

.is-style-logo-box {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.is-style-score-value {
	line-height: 1 !important;
}

.is-style-rank-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.55rem !important;
	border-radius: 4px;
	width: fit-content;
}

.is-style-highlight-bullets {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-highlight-bullets li {
	position: relative;
	padding-left: 1.15rem;
	margin-bottom: 0.35rem;
}

.is-style-highlight-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-4);
}

.is-style-phone-link a,
a.is-style-phone-link {
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.is-style-phone-link a:hover,
a.is-style-phone-link:hover {
	text-decoration: underline;
}

/* Resource teasers */
.is-style-resource-teaser {
	text-decoration: none;
}

.is-style-resource-teaser .dpr-thumb,
.dpr-thumb {
	min-height: 100px;
	border-radius: 8px;
}

.is-style-sidebar-panel {
	position: sticky;
	top: 5.5rem;
}

/* FAQ */
.is-style-faq-item summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
}

.is-style-faq-item[open] summary {
	margin-bottom: 0.35rem;
}

/* Tool embed placeholder */
.is-style-embed-placeholder {
	min-height: 280px;
	display: grid;
	place-items: center;
	text-align: center;
	background-image: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 24px,
		rgba(26, 77, 62, 0.03) 24px,
		rgba(26, 77, 62, 0.03) 25px
	);
}

/* Editorial note */
.is-style-client-note {
	background: #fff8e8;
	border: 1px solid #f0e0b8;
	border-radius: 6px;
	color: #8a6a2b !important;
}

/* Footer nav stacked */
.dpr-footer .wp-block-navigation {
	display: flex;
	flex-direction: column;
}

.dpr-footer .wp-block-navigation__container {
	gap: 0.4rem;
	align-items: flex-start;
}

.dpr-footer a:hover {
	text-decoration: underline;
}

/* Buttons stretch in ranking CTA column */
.dpr-card-cta .wp-block-button,
.dpr-card-cta .wp-block-button__link {
	width: 100%;
	justify-content: center;
}

/* Query / archive cards */
.dpr-archive-card {
	height: 100%;
}

@media (max-width: 781px) {
	.is-style-sidebar-panel {
		position: static;
	}
}
