/* Single-post author box. Enqueued only on single posts (functions.php). */

/* In-content "Visit X" CTA buttons (affiliate/outbound links inside post
   bodies). Inline-styled per-button since they're typed directly into post
   content, not a reusable block — this class exists only to give the hover
   state something to target, since inline styles can't have a :hover of
   their own. !important beats the inline background color on hover. */
.dp-post-cta-btn:hover {
	background-color: #c72525 !important;
}

/* Remove GeneratePress/GenerateBlocks' shared card border+shadow (all four
   sides, not just the right/bottom the shared rule itself sets) from the
   article wrapper, comments area, and their containing wrapper on single
   posts — that shared rule also targets unrelated selectors (.sidebar
   .widget, .gb-loop-item, .container-widget) sitewide, so it's overridden
   here rather than edited at the source, to avoid touching those. */
.site-content,
.inside-article,
.comments-area,
.entry-content .container-widget,
.entry-content .gb-loop-item {
	border: none !important;
	box-shadow: none !important;
}

.dp-post-breadcrumb {
	font-size: 14px;
	color: #64748B;
	margin-bottom: 12px;
}
.dp-post-breadcrumb a {
	color: #64748B;
	text-decoration: none;
}
.dp-post-breadcrumb a:hover {
	text-decoration: underline;
}
.dp-post-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 4px 0 0;
}
.dp-post-updated {
	font-size: 14px;
	color: #64748B;
	margin: 0;
}
.dp-post-byline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #64748B;
}
.dp-post-byline-label {
	color: #64748B;
}
.dp-post-byline-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}
.dp-post-byline-link img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: block;
}
.dp-post-byline-name {
	font-weight: 600;
	color: #0B1734;
}
.dp-post-byline-link:hover .dp-post-byline-name {
	color: #D72E2E;
}
.dp-post-byline-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748B;
}
.dp-post-byline-x svg {
	width: 15px;
	height: 15px;
	display: block;
}
.dp-post-byline-x:hover {
	color: #D72E2E;
}

.dp-author-box {
	--dp-accent: #D72E2E;
	--dp-navy: #0B1734;
	--dp-muted: #64748B;
	--dp-border: #E7E9EE;
	--dp-surface: #F7F8FA;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: 1280px;
	margin: 40px auto 0;
	padding: 26px;
	border: 1px solid var(--dp-border);
	border-radius: 14px;
	background: var(--dp-surface);
}
.dp-author-box-avatar {
	flex-shrink: 0;
}
.dp-author-box-avatar img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: block;
	object-fit: cover;
}
.dp-author-box-body {
	min-width: 0;
	flex: 1;
}
.dp-author-box-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dp-muted);
	margin: 0 0 6px;
}
.dp-author-box-name {
	margin: 0 0 10px;
	font-size: 20px;
}
.dp-author-box-name a {
	color: var(--dp-navy);
	text-decoration: none;
}
.dp-author-box-bio {
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 16px;
}
.dp-author-box-readmore {
	color: var(--dp-accent);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.dp-author-box-socials {
	display: flex;
	gap: 8px;
}
.dp-author-box-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--dp-accent);
	text-decoration: none;
}
.dp-author-box-socials svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
	.dp-author-box { flex-direction: column; }
}

/* ---------- Related Articles carousel ----------
   Full-bleed, same technique as the old hero: escapes GP's boxed
   .site-content/.inside-article container instead of sitting confined
   inside it, then re-centers the actual content at a sane max-width. */
.dp-related-articles {
	width: 100vw;
	margin: 40px calc(50% - 50vw) 0;
	padding: 40px 0 60px;
	background-color: #EEF0F3;
}
.dp-related-articles-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}
.dp-related-articles-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.dp-related-articles-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--dp-navy, #0B1734);
	margin: 0;
}
.dp-related-nav {
	display: flex;
	gap: 8px;
}
.dp-related-prev, .dp-related-next {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--dp-border, #E7E9EE);
	background: #fff;
	color: var(--dp-navy, #0B1734);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.dp-related-prev svg, .dp-related-next svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.dp-related-prev:hover, .dp-related-next:hover { background: var(--dp-surface, #F7F8FA); }
.dp-related-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	scrollbar-width: thin;
}
.dp-related-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
	border: 1px solid var(--dp-border, #E7E9EE);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	display: block;
	background: #fff;
}
.dp-related-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dp-related-card-body { padding: 16px; }
.dp-related-card-date {
	font-size: 12.5px;
	color: var(--dp-muted, #64748B);
}
.dp-related-card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--dp-navy, #0B1734);
	margin: 8px 0 10px;
}
.dp-related-card-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--dp-accent, #D72E2E);
}

@media (max-width: 640px) {
	.dp-related-card { flex: 0 0 240px; }
}

/* ---------- Rank Math FAQ block ---------- */
#rank-math-faq .rank-math-list-item {
	padding: 20px 0;
	border-bottom: 1px solid #E7E9EE;
}
#rank-math-faq .rank-math-list-item:first-child {
	padding-top: 12px;
}
#rank-math-faq .rank-math-list-item:last-child {
	border-bottom: none;
}
#rank-math-faq .rank-math-question {
	position: relative;
	margin: 0 0 10px;
	padding-left: 16px;
	font-size: 18px;
	font-weight: 700;
	color: #0B1734;
}
#rank-math-faq .rank-math-question::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: #D72E2E;
}
#rank-math-faq .rank-math-answer {
	padding-left: 16px;
	color: #374151;
	font-size: 15.5px;
	line-height: 1.65;
}
#rank-math-faq .rank-math-answer p {
	margin: 0;
}

/* Product Box block (acf/product-box): brand red CTA like every other
   "Visit X" button, and a fixed two-column bottom row (price | note, then
   description | button) so the button always sits to the right of the
   description. The plugin's flex-wrap layout pushed the button onto its own
   line whenever a description ran longer, so boxes stopped lining up. */
.acf-product-box {
	--pb-btn-primary-bg: #D72E2E;
	--pb-btn-primary-hover: #c72525;
	--pb-btn-primary-text: #fff;
}
@container product-box (min-width: 540px) {
	.acf-product-box .acf-product-box__bottom {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 20px;
	}
	.acf-product-box .acf-product-box__price-note,
	.acf-product-box .acf-product-box__buttons {
		justify-self: end;
	}
}

/* Wide tables on small screens: let every table figure scroll sideways
   instead of being clipped. WordPress only ships this for block tables
   whose block styles are enqueued, classic-HTML tables in older posts
   never got it. */
.entry-content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Product Review block CTA: brand red like other "Visit X" buttons */
.acf-product-review{--pr-btn-bg:#D72E2E;--pr-btn-hover:#c72525}
.entry-content a.acf-product-review-button,
.entry-content a.acf-product-review-button:visited{background:#D72E2E;color:#fff;font-size:25px;line-height:1.3;padding:10px 26px}
.entry-content a.acf-product-review-button:hover,
.entry-content a.acf-product-review-button:focus{background:#c72525;color:#fff}

/* Wide comparison tables: keep columns readable on phones, scroll sideways */
.entry-content figure.wp-block-table.dp-wide-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
.entry-content figure.wp-block-table.dp-wide-table table{min-width:720px}

/* Comparison tables: styled on desktop, stacked cards on phones */
.dp-compare{margin:1.6em 0}
.dp-compare table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;font-size:15px;line-height:1.5}
.dp-compare thead th{background:#111827;color:#fff;text-align:left;padding:12px 14px;font-weight:600;font-size:14px;border:0}
.dp-compare tbody td{padding:12px 14px;border:0;border-top:1px solid #e5e7eb;vertical-align:top}
.dp-compare tbody tr:nth-child(even) td{background:#f9fafb}
.dp-compare tbody td:first-child{font-weight:700;color:#111827}
.dp-compare tbody tr.dp-hl td{background:#fff5f5}
.dp-compare tbody tr.dp-hl td:first-child{box-shadow:inset 4px 0 0 #D72E2E}
.dp-compare figcaption{font-size:13px;color:#6b7280;margin-top:8px;text-align:left}
@media (max-width:700px){
 .dp-compare table,.dp-compare tbody,.dp-compare tr,.dp-compare td{display:block;width:100%}
 .dp-compare table{border:0;border-radius:0;overflow:visible}
 .dp-compare thead{display:none}
 .dp-compare tbody tr{border:1px solid #e5e7eb;border-radius:10px;margin:0 0 14px;overflow:hidden;background:#fff}
 .dp-compare tbody tr:nth-child(even) td{background:#fff}
 .dp-compare tbody tr.dp-hl{border-color:#D72E2E}
 .dp-compare tbody tr.dp-hl td{background:#fff}
 .dp-compare tbody td{display:flex;gap:12px;justify-content:space-between;border-top:1px solid #f1f5f9;padding:10px 14px;text-align:right}
 .dp-compare tbody td::before{content:attr(data-label);font-weight:600;color:#6b7280;text-align:left;flex:0 0 42%}
 .dp-compare tbody td:first-child{display:block;background:#111827 !important;color:#fff;font-size:16px;text-align:left;border-top:0;box-shadow:none !important}
 .dp-compare tbody tr.dp-hl td:first-child{background:#D72E2E !important}
 .dp-compare tbody td:first-child::before{content:none}
}
@media (max-width:700px){.dp-compare tbody td .dp-v{flex:1;min-width:0;text-align:right;overflow-wrap:anywhere}.dp-compare tbody td:first-child .dp-v{text-align:left}}

/* 2026-10-14: make wide Gutenberg tables scroll on mobile instead of overflowing the page */
@media (max-width: 782px) {
	.entry-content figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
	.entry-content figure.wp-block-table > table { min-width: max-content; }
}
