
/* Blog Post Styles */

/* Anchor targets: fixed header (4.3rem) + TOC title bar (~3.75rem) */
body.single-post .blog-content :is(h2, h3, h4)[id] {
	scroll-margin-top: calc(4.3rem + 3.75rem);
}

@media (min-width: 1024px) {
	body.single-post .blog-content :is(h2, h3, h4)[id] {
		scroll-margin-top: 7rem;
	}
}

.schema-faq-section strong {
	font-weight: 600;
	color: #0f172a;
}

.schema-faq strong {
	font-weight: 600;
}

.entry-content p {
	padding-bottom: 10px;
}

.wp-block-list li::first-letter {
	text-transform: capitalize;
}

.entry-content p:last-child {
	padding-bottom: 0px;
}

.entry-content p, .entry-content li {
	color: #4b5563;
}

.entry-content li {
	padding-bottom: 10px;
}

.entry-content a {
	color: #1d4ed8;
}

.entry-content a:hover {
	color: #111827;
}

.entry-content ul.wp-block-list {
	list-style-type: disc;
	margin-left: 24px;
	padding-bottom: 10px;
}

.entry-content ol.wp-block-list {
	list-style-type: decimal;
	margin-left: 24px;
}

.entry-content .wp-block-list strong {
	font-weight: 600 !important;
}

.entry-content .wp-block-list li strong {
	font-weight: 600;
	color: #0f172a;
}

/* .entry-content p {
    margin-bottom: 15px; 
} */

/* Contact Form Styles */
.contact-form input.large, .contact-form textarea.small {
	padding-left: .75rem;
	padding-right: .75rem;
	border-radius: .45rem !important;
	border: 1px #cecece solid !important;
}

input[type=submit] {
	background-color: #1e40af !important;
}

input[type=submit]:hover {
	background-color: #1d4ed8 !important;
}

.case-studies-template-default .leading-relaxed p {
	padding-bottom: 10px;
}

.schema-faq .schema-faq-section {
	padding-bottom: 10px;
}

/* Custom HTML code snippet wrapper (e.g. w-[600px] in post content): full width on mobile */
.blog-content [class*="w-[600px]"], .blog-content .blog-code-snippet {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.blog-content [class*="w-[600px]"], .blog-content .blog-code-snippet {
		width: 600px;
		max-width: 600px;
	}
}

/* Code block (wp-block-code): reset inherited blog/Tailwind utilities so snippets display correctly */
.blog-content pre.wp-block-code {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.25em 0;
	padding: .75rem 5rem 1rem 1.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: .5rem;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: .875rem;
	line-height: 1.65;
	text-align: left;
}

.blog-content pre.wp-block-code code {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	background: transparent !important;
	border: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-break: break-word;
}

.blog-content .wp-block-code-copy-btn {
	position: absolute;
	top: .5rem;
	right: .5rem;
	z-index: 2;
	margin: 0;
	padding: .35rem .65rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.25;
	color: #1e40af;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: .375rem;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.blog-content .wp-block-code-copy-btn:hover {
	color: #1d4ed8;
	background: #eff6ff;
	border-color: #93c5fd;
}

/* .blog-content .wp-block-code-copy-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
} */
.blog-content .wp-block-code-copy-btn.is-copied {
	color: #047857;
	border-color: #6ee7b7;
	background: #ecfdf5;
}
