/**
 * Single blog post (post_type=post) styles.
 * All classes prefixed `spt-` and scoped under .spt-article.
 */

.spt-article {
	background: var(--white);
	color: var(--black);
	font-family: 'Inter', system-ui, sans-serif;
	overflow-x: clip;
}

.spt-article *, .spt-article *::before, .spt-article *::after { box-sizing: border-box; }

/* ── HERO ───────────────────────────────────────────── */
.spt-article .spt-hero {
	padding: 72px 0 32px;
	background: var(--bg);
	border-bottom: 1px solid #EAEAEA;
	overflow: hidden;
}

.spt-article .spt-hero-inner {
	max-width: 1280px !important;
	width: 100%;
	margin: 0 auto;
	padding: 0 48px;
}

.spt-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	margin-bottom: 32px;
	transition: color 0.18s, gap 0.18s;
}
.spt-back:hover {
	color: var(--red);
	gap: 12px;
}
.spt-back svg {
	width: 14px;
	height: 14px;
}

.spt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 22px;
}
.spt-eyebrow-rule {
	display: inline-block;
	width: 28px;
	height: 1px;
	background: var(--red);
}

.spt-article .spt-h1 {
	font-size: clamp(1.8rem, 3.8vw, 2.8rem) !important;
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.02;
	color: var(--black);
	margin: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
	text-align: left;
}

.spt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.spt-meta-item { line-height: 1; }
.spt-meta-dot { color: #CFCFCF; line-height: 1; }

/* ── BODY + SIDEBAR ─────────────────────────────────── */
/* Brand standard: padding 0 on outer, side padding inside the grid.
   Matches .roar-content + .roar-content-grid. See branding.md §1. */
.spt-body {
	padding: 56px 0 96px;
}

.spt-body-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 48px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
	align-items: start;
}

/* ── ARTICLE CONTENT ────────────────────────────────── */
.spt-content {
	font-size: 17px;
	line-height: 1.75;
	color: #2A2A2A;
}
.spt-content > * + * { margin-top: 1.1em; }
/* First content element aligns with the sidebar's top — no extra margin.
   Gutenberg often wraps the opening heading in a .wp-block-group, so we
   target the h2 inside the first group too. */
.spt-content > :first-child { margin-top: 0 !important; }
.spt-article .wp-block-group:first-child h2:first-child { margin-top: 0; }
.spt-content h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--black);
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}
.spt-content h3 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--black);
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}
.spt-content p {
	margin: 0;
}
.spt-content a {
	color: var(--red);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.spt-content a:hover {
	text-decoration-thickness: 2px;
}
.spt-content strong { font-weight: 700; }
.spt-content em { color: var(--red); font-style: italic; }
.spt-content ul, .spt-content ol {
	padding-left: 1.4em;
	margin: 0;
}
.spt-content li + li { margin-top: 6px; }
.spt-content li::marker { color: var(--red); }
.spt-content blockquote {
	border-left: 3px solid var(--red);
	padding: 8px 0 8px 24px;
	margin: 1.8em 0;
	font-size: 1.1em;
	font-weight: 500;
	color: var(--black);
	font-style: italic;
}
.spt-content blockquote p:first-child::before { content: "“"; color: var(--red); margin-right: 4px; }
.spt-content blockquote p:last-child::after { content: "”"; color: var(--red); margin-left: 4px; }
.spt-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.4em 0;
}
.spt-content pre,
.spt-content code {
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: #F4F4F4;
	border: 1px solid #EAEAEA;
}
.spt-content code { padding: 2px 6px; }
.spt-content pre { padding: 18px 20px; overflow-x: auto; }

/* ── GUTENBERG BLOCKS — match the article body's vertical rhythm ── */
.spt-content .wp-block-image {
	margin: 1.6em 0;
}
.spt-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
.spt-content .wp-block-image figcaption {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	margin-top: 10px;
	font-style: italic;
}

.spt-content .wp-block-paragraph,
.spt-content p { margin: 0; }

.spt-content .wp-block-heading {
	font-weight: 900;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--black);
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}
/* Matches canonical .ld-contact-h2 scale so headings in blog content
   feel as substantial as on /contact/ and other landing pages. */
.spt-content h2.wp-block-heading {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.spt-content h3.wp-block-heading {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 900;
}
/* Honour the editor's "Large" font-size pill on individual blocks. */
.spt-content .wp-block-heading.has-large-font-size {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
/* Inline-red <strong>/<span> inside a heading — the editor sets color
   via inline style for the accent half; preserve that. */
.spt-content .wp-block-heading strong,
.spt-content .wp-block-heading span { color: inherit; }

.spt-content .wp-block-list,
.spt-content ul.wp-block-list,
.spt-content ol.wp-block-list {
	padding-left: 1.4em;
	margin: 0;
	list-style: disc;
}
.spt-content ol.wp-block-list { list-style: decimal; }
.spt-content .wp-block-list li { padding-left: 4px; }

.spt-content .wp-block-quote,
.spt-content .wp-block-pullquote {
	border-left: 3px solid var(--red);
	padding: 8px 0 8px 24px;
	margin: 1.8em 0;
	font-size: 1.1em;
	font-weight: 500;
	color: var(--black);
	font-style: italic;
}

.spt-content .wp-block-separator {
	border: 0;
	border-top: 1px solid #EAEAEA;
	margin: 2em 0;
}

/* The "add-space-for-h2" custom class on H2s adds breathing room above. */
.spt-content .add-space-for-h2 { margin-top: 2.2em; }

/* Legacy ".post-cse-section" wraps the "GET IN CONTACT TODAY..." heading on
   many older posts. The old theme styled it as the main H2 above the contact
   form; promote it back regardless of whether the author wrote h2/h3/h4. */
.spt-content h2.post-cse-section,
.spt-content h3.post-cse-section,
.spt-content h4.post-cse-section {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 900;
	letter-spacing: -0.015em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--black);
}

/* Stack the legacy "Book a call" headline above the HubSpot form instead of
   the old 2-column hero. Targets the inner wp-block-columns inside the
   .book-call-section wrapper (the outer .wp-block-columns is itself a
   single-column wrapper and is unaffected). */
.spt-content .book-call-section .wp-block-columns {
	flex-direction: column;
	gap: 24px;
}
.spt-content .book-call-section .wp-block-columns > .wp-block-column {
	flex-basis: 100% !important;
	max-width: 100%;
}
/* Tuck the headline and the "CONTACT US" sub-heading closer to the form
   when the columns are stacked — kill the surrounding heading margins. */
.spt-content .book-call-section h4.post-cse-section { margin-bottom: 0; }
.spt-content .book-call-section .contact-col h4.wp-block-heading { margin-top: 0; }

/* ── FAQ ACCORDION ──────────────────────────────────────
   The editor wraps FAQs as <details> blocks inside .wp-block-group.accordion.
   Style them as grey rounded cards with a +/- toggle instead of the default
   browser triangle. */
.spt-content .wp-block-group.accordion { margin-top: 1.4em; }
.spt-content .wp-block-group.accordion > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.spt-content .wp-block-group.accordion .wp-block-details {
	background: #F5F7FA;
	border: 1px solid #E6EAF0;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	transition: background-color 160ms ease, border-color 160ms ease;
}
.spt-content .wp-block-group.accordion .wp-block-details:hover { background: #EEF1F6; }
.spt-content .wp-block-group.accordion .wp-block-details[open] {
	background: #FFF;
	border-color: #D6DCE6;
}
.spt-content .wp-block-group.accordion .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 64px 22px 28px;
	position: relative;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--black);
	font-weight: 800;
}
.spt-content .wp-block-group.accordion .wp-block-details summary::-webkit-details-marker { display: none; }
.spt-content .wp-block-group.accordion .wp-block-details summary::marker { content: ""; }
.spt-content .wp-block-group.accordion .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.7rem;
	line-height: 1;
	font-weight: 400;
	color: var(--black);
}
.spt-content .wp-block-group.accordion .wp-block-details[open] summary::after { content: "\2212"; }
.spt-content .wp-block-group.accordion .wp-block-details > *:not(summary) {
	margin: 0 28px;
}
.spt-content .wp-block-group.accordion .wp-block-details > *:not(summary):first-of-type { margin-top: 4px; }
.spt-content .wp-block-group.accordion .wp-block-details > *:not(summary):last-child { margin-bottom: 22px; }
.spt-content .wp-block-group.accordion .wp-block-details summary strong { font-weight: inherit; }

/* "FAQs" intro heading: uppercase the H2 that sits immediately above an
   accordion block (already red via inline color set in the editor). */
.spt-content h2.wp-block-heading:has(+ .wp-block-group.accordion) {
	text-transform: uppercase;
}

/* Inline color helpers used in legacy editor content. */
.spt-content span.red-color,
.spt-content .orange-color { color: var(--red); }

/* HubSpot form / contact-col styling is handled by contact.css under the
   `.ld-contact-form-block` wrapper (the [HubSpot] shortcode now outputs
   that wrapper, and contact.css is conditionally enqueued on single posts). */

/* ── SIDEBAR ────────────────────────────────────────── */
.spt-sidebar { min-width: 0; }
.spt-sidebar-sticky {
	position: sticky;
	top: 96px;
}

.spt-sidebar-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 18px;
}

.spt-related {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.spt-related-link {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 14px;
	text-decoration: none;
	color: var(--black);
	padding: 12px;
	border: 1px solid #EAEAEA;
	background: var(--white);
	transition: border-color 0.18s, transform 0.18s;
}
.spt-related-link:hover {
	border-color: var(--red);
	transform: translateY(-1px);
}
.spt-related-thumb {
	display: block;
	width: 80px;
	height: 56px;
	overflow: hidden;
	background: var(--white);
	flex-shrink: 0;
}
.spt-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.spt-related-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.spt-related-date {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.spt-related-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--black);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Multiple sidebar blocks — used on ROAR singles (Recent Monthly ROARs + Recent articles). */
.spt-sidebar-eyebrow--stacked { margin-top: 32px; }

/* ── OTHER ARTICLES grid (used on ROAR singles before CTA) ── */
.spt-other {
	padding: 80px 0;
	background: var(--white);
	border-top: 1px solid #EAEAEA;
	border-bottom: 1px solid #EAEAEA;
}

.spt-other-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 48px;
}

.spt-other-header { margin-bottom: 40px; }

.spt-other-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}

.spt-other-h2 {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.05;
	color: var(--black);
	margin: 0;
}

.spt-other-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.spt-other-card {
	background: var(--white);
	border: 1px solid #EAEAEA;
	text-decoration: none;
	color: var(--black);
	overflow: hidden;
	position: relative;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.spt-other-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
	z-index: 2;
}

.spt-other-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
	border-color: rgba(255,44,85,0.25);
}
.spt-other-card:hover::before { transform: scaleX(1); }

.spt-other-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--white);
}

.spt-other-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.spt-other-card:hover .spt-other-img { transform: scale(1.04); }

.spt-other-body { padding: 24px 26px 26px; }

.spt-other-card-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 12px;
}
.spt-other-card-eyebrow::before {
	content: "";
	width: 20px;
	height: 1px;
	background: var(--red);
}

.spt-other-title {
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--black);
}

.spt-other-meta {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--muted);
}

/* ── BOTTOM CTA ─────────────────────────────────────── */
.spt-cta {
	padding: 88px 0;
	background: var(--black);
	color: var(--white);
	text-align: center;
}
.spt-cta-inner { max-width: 680px; margin: 0 auto; padding: 0 48px; }
.spt-cta-eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 16px;
}
.spt-cta-h2 {
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.06;
	color: var(--white);
	margin: 0 0 12px;
}
.spt-cta-sub {
	font-size: 16px;
	color: #999;
	margin-bottom: 28px;
}
.spt-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: var(--red);
	color: var(--white);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: gap 0.18s, background 0.18s;
}
.spt-cta-btn:hover {
	background: var(--white);
	color: var(--black);
	gap: 16px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
	.spt-body-grid {
		grid-template-columns: 1fr;
		gap: 56px;
	}
	.spt-sidebar-sticky { position: static; }
}

@media (max-width: 1024px) {
	.spt-other-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.spt-hero-inner,
	.spt-body-grid,
	.spt-other-inner,
	.spt-cta-inner { padding-left: 22px; padding-right: 22px; }
	.spt-hero { padding-top: 48px; padding-bottom: 24px; }
	.spt-body { padding-top: 40px; padding-bottom: 64px; }
	.spt-other { padding: 56px 0; }
	.spt-cta { padding-top: 64px; padding-bottom: 64px; }
	.spt-content { font-size: 16px; }
	.spt-other-grid { grid-template-columns: 1fr; }
}
