/**
 * Content pages: ordinary pages, blog, archives, search, single posts, and
 * the shared base for My account (inc/pages.php, template-parts/page-hero.php).
 *
 * Scoped to body.sp-content. Interactive elements define default, hover,
 * focus-visible, pressed and, where relevant, current / disabled states.
 */

/* ==========================================================================
   1. Tokens + page
   ========================================================================== */

body.sp-content {
	--sp-c-border: #ebe7e2;
	--sp-c-border-strong: #dcd6cc;
	--sp-c-surface: #fbf8f5;
	--sp-c-muted: var( --global-palette6, #6b6b6b );
	--sp-c-text: var( --global-palette5, #333333 );
	--sp-c-hover: var( --sp-orange-dark, #be5008 );
	--sp-c-pressed: #9e4207;
	--sp-c-ring: 0 0 0 2px var( --sp-white, #ffffff ), 0 0 0 4px var( --sp-orange, #e8620a );
	--sp-c-measure: 760px;
}

body.sp-content #inner-wrap {
	background: var( --sp-white, #ffffff );
}

body.sp-content .content-area {
	margin-top: clamp( 2rem, 4vw, 3rem );
	margin-bottom: clamp( 3rem, 6vw, 5rem );
}

/* Kadence's boxed cards become plain content on white. */
body.sp-content .content-bg,
body.sp-content .entry.single-entry,
body.sp-content .entry-content-wrap {
	background: transparent;
	box-shadow: none;
}

body.sp-content .entry.single-entry .entry-content-wrap {
	padding: 0;
}

/* ==========================================================================
   2. Hero
   ========================================================================== */

.sp-page-hero {
	position: relative;
	overflow: hidden;
	background: var( --sp-white, #ffffff );
	border-bottom: 1px solid #ebe7e2;
}

.sp-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient( ellipse 60% 120% at 92% 0%, rgba( 232, 98, 10, 0.07 ) 0%, transparent 70% ),
		linear-gradient( to right, #ffffff 0%, transparent 10%, transparent 90%, #ffffff 100% ),
		linear-gradient( to bottom, transparent 0%, transparent 40%, #ffffff 100% ),
		linear-gradient( to right, rgba( 232, 98, 10, 0.12 ) 1px, transparent 1px ),
		linear-gradient( to bottom, rgba( 232, 98, 10, 0.12 ) 1px, transparent 1px );
	background-size: 100% 100%, 100% 100%, 100% 100%, 88px 88px, 88px 88px;
	pointer-events: none;
}

.sp-page-hero__inner {
	position: relative;
	max-width: var( --global-content-width, 1290px );
	margin-inline: auto;
	padding: clamp( 1.5rem, 3vw, 2.25rem ) var( --global-content-edge-padding, 1.5rem ) clamp( 2rem, 4vw, 3rem );
}

.sp-page-hero__crumbs {
	margin-bottom: clamp( 1.75rem, 4vw, 2.75rem );
}

.sp-page-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 1.125rem;
	padding: 0.5rem 1.125rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid rgba( 232, 98, 10, 0.35 );
	border-radius: 999px;
	color: var( --sp-orange-dark, #be5008 );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.sp-page-hero__dot {
	width: 6px;
	height: 6px;
	background: var( --sp-orange, #e8620a );
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba( 232, 98, 10, 0.18 );
}

.sp-page-hero__title {
	max-width: 900px;
	margin: 0;
	color: var( --sp-black, #000000 );
	font-size: clamp( 2.25rem, 5vw, 4rem );
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.sp-page-hero__lede {
	max-width: 640px;
	margin: 1.125rem 0 0;
	color: var( --global-palette6, #6b6b6b );
	font-size: 1.125rem;
	line-height: 1.6;
}

.sp-page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	color: var( --global-palette6, #6b6b6b );
	font-size: 0.875rem;
	font-weight: 500;
}

.sp-page-hero__meta li {
	position: relative;
	margin: 0;
}

.sp-page-hero__meta li + li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -0.8rem;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	background: var( --sp-orange, #e8620a );
	border-radius: 50%;
}

/* Search box in the hero */
.sp-page-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 640px;
	margin-top: 1.5rem;
	padding: 0.375rem 0.375rem 0.375rem 3rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid #dcd6cc;
	border-radius: 999px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-page-search:hover {
	border-color: var( --global-palette6, #6b6b6b );
}

.sp-page-search:focus-within {
	border-color: var( --sp-black, #000000 );
	box-shadow: 0 0 0 3px rgba( 232, 98, 10, 0.25 );
}

.sp-page-search__icon {
	position: absolute;
	left: 1.125rem;
	width: 20px;
	height: 20px;
	color: var( --global-palette6, #6b6b6b );
}

body.sp-content .sp-page-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var( --sp-black, #000000 );
	font-size: 1rem;
}

body.sp-content .sp-page-search__input:focus {
	outline: none;
	box-shadow: none;
}

body.sp-content .sp-page-search__btn {
	min-height: 44px;
	padding: 0 1.375rem;
	background: var( --sp-orange, #e8620a );
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: var( --sp-black, #000000 );
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.sp-content .sp-page-search__btn:hover {
	background: var( --sp-orange-dark, #be5008 );
	box-shadow: none;
	color: var( --sp-white, #ffffff );
}

body.sp-content .sp-page-search__btn:focus-visible {
	background: var( --sp-orange-dark, #be5008 );
	color: var( --sp-white, #ffffff );
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content .sp-page-search__btn:active {
	background: #9e4207;
	transform: translateY( 1px );
}

/* Type filter pills */
.sp-page-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.sp-page-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 40px;
	padding: 0.5rem 1.125rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid #ebe7e2;
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sp-page-filter__count {
	color: var( --global-palette6, #6b6b6b );
	font-size: 0.75rem;
}

.sp-page-filter:hover {
	border-color: var( --sp-black, #000000 );
	color: var( --sp-black, #000000 );
}

.sp-page-filter:focus-visible {
	border-color: var( --sp-black, #000000 );
	outline: none;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var( --sp-orange, #e8620a );
}

.sp-page-filter:active {
	transform: translateY( 1px );
}

.sp-page-filter.is-active,
.sp-page-filter.is-active:hover {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

.sp-page-filter.is-active .sp-page-filter__count {
	color: rgba( 255, 255, 255, 0.72 );
}

.sp-page-filter.is-empty:not( .is-active ) {
	color: var( --global-palette6, #6b6b6b );
}

/* ==========================================================================
   3. Listing cards (blog, archives, search)
   ========================================================================== */

body.sp-content .kadence-posts-list {
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

body.sp-content .kadence-posts-list .entry-list-item {
	margin: 0;
	list-style: none;
}

body.sp-content article.loop-entry {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
	box-shadow: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.sp-content article.loop-entry:hover,
body.sp-content article.loop-entry:focus-within {
	border-color: var( --sp-c-border-strong );
	box-shadow: 0 16px 36px rgba( 0, 0, 0, 0.06 );
}

body.sp-content article.loop-entry:hover {
	transform: translateY( -4px );
}

body.sp-content article.loop-entry .post-thumbnail {
	display: block;
	margin: 0;
	overflow: hidden;
	background: var( --global-palette8, #f5f5f5 );
}

body.sp-content article.loop-entry .post-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.3s ease;
}

body.sp-content article.loop-entry:hover .post-thumbnail img {
	transform: scale( 1.04 );
}

body.sp-content article.loop-entry .entry-content-wrap {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.5rem;
}

/* Type badge (search) */
.sp-type-badge {
	align-self: flex-start;
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0.75rem;
	background: var( --sp-c-surface, #fbf8f5 );
	border: 1px solid var( --sp-c-border, #ebe7e2 );
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-type-badge--product {
	background: rgba( 232, 98, 10, 0.08 );
	border-color: rgba( 232, 98, 10, 0.3 );
	color: var( --sp-orange-dark, #be5008 );
}

body.sp-content article.loop-entry .entry-header {
	display: flex;
	flex-direction: column;
	margin: 0;
}

body.sp-content article.loop-entry .entry-taxonomies {
	margin: 0 0 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.sp-content article.loop-entry .entry-taxonomies a {
	color: var( --sp-c-hover );
	text-decoration: none;
}

body.sp-content article.loop-entry .entry-taxonomies a:hover {
	color: var( --sp-black, #000000 );
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.sp-content article.loop-entry .entry-title {
	margin: 0;
	color: var( --sp-black, #000000 );
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

body.sp-content article.loop-entry .entry-title a {
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
	transition: color 0.15s ease;
}

body.sp-content article.loop-entry .entry-title a:hover {
	color: var( --sp-c-hover );
}

body.sp-content article.loop-entry .entry-title a:focus-visible,
body.sp-content article.loop-entry .entry-taxonomies a:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content article.loop-entry .entry-meta {
	margin: 0.5rem 0 0;
	color: var( --sp-c-muted );
	font-size: 0.8125rem;
}

body.sp-content article.loop-entry .entry-meta a {
	color: inherit;
}

body.sp-content article.loop-entry .entry-summary {
	margin: 0.875rem 0 0;
	color: var( --sp-c-muted );
	font-size: 0.9375rem;
	line-height: 1.6;
}

body.sp-content article.loop-entry .entry-summary p {
	margin: 0;
}

body.sp-content article.loop-entry .entry-footer {
	margin-top: auto;
	padding-top: 1.25rem;
}

body.sp-content article.loop-entry .post-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var( --sp-black, #000000 );
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	border-radius: 4px;
	transition: color 0.15s ease, gap 0.2s ease;
}

body.sp-content article.loop-entry .post-more-link:hover {
	gap: 0.625rem;
	color: var( --sp-c-hover );
}

body.sp-content article.loop-entry .post-more-link:focus-visible {
	color: var( --sp-c-hover );
	outline: none;
	box-shadow: var( --sp-c-ring );
}

/* No results */
body.sp-content .no-results,
body.sp-content .search-no-results .page-content {
	max-width: var( --sp-c-measure );
	padding: 2rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
	color: var( --sp-c-text );
}

/* ==========================================================================
   4. Pagination
   ========================================================================== */

body.sp-content .navigation.pagination {
	margin-top: clamp( 2.5rem, 5vw, 3.5rem );
}

body.sp-content .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

body.sp-content .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 0.75rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.sp-content .navigation.pagination a.page-numbers:hover {
	border-color: var( --sp-black, #000000 );
	color: var( --sp-black, #000000 );
}

body.sp-content .navigation.pagination a.page-numbers:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content .navigation.pagination a.page-numbers:active {
	transform: translateY( 1px );
}

body.sp-content .navigation.pagination .page-numbers.current {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

body.sp-content .navigation.pagination .page-numbers.dots {
	min-width: 0;
	border-color: transparent;
	color: var( --sp-c-muted );
}

body.sp-content .navigation.pagination .page-numbers svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   5. Reading typography (pages + posts)
   ========================================================================== */

body.sp-content--page .entry-content,
body.sp-content--post .entry-content {
	max-width: var( --sp-c-measure );
	color: var( --sp-c-text );
	font-size: 1.0625rem;
	line-height: 1.75;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content > * + * {
	margin-top: 1.25em;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content > :first-child {
	margin-top: 0;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content h2,
body:is( .sp-content--page, .sp-content--post ) .entry-content h3,
body:is( .sp-content--page, .sp-content--post ) .entry-content h4 {
	margin-top: 2em;
	margin-bottom: 0.5em;
	color: var( --sp-black, #000000 );
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content h2 {
	font-size: clamp( 1.5rem, 2.6vw, 1.875rem );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content h3 {
	font-size: 1.375rem;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content h4 {
	font-size: 1.125rem;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content a:not( .wp-block-button__link ):not( .button ):not( .sp-policy-toc__link ) {
	color: var( --sp-c-hover );
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	border-radius: 2px;
	transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content a:not( .wp-block-button__link ):not( .button ):not( .sp-policy-toc__link ):hover {
	color: var( --sp-black, #000000 );
	text-decoration-thickness: 2px;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content a:not( .wp-block-button__link ):not( .button ):not( .sp-policy-toc__link ):focus-visible {
	color: var( --sp-black, #000000 );
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content ul,
body:is( .sp-content--page, .sp-content--post ) .entry-content ol {
	padding-left: 1.375em;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content li + li {
	margin-top: 0.4em;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content li::marker {
	color: var( --sp-orange, #e8620a );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content blockquote,
body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-quote {
	margin-left: 0;
	margin-right: 0;
	padding: 1.25em 1.5em;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 16px;
	color: var( --sp-black, #000000 );
	font-size: 1.1875rem;
	font-style: normal;
	line-height: 1.6;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content blockquote cite {
	display: block;
	margin-top: 0.75em;
	color: var( --sp-c-muted );
	font-size: 0.875rem;
	font-style: normal;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content img {
	height: auto;
	border-radius: 16px;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content figcaption {
	margin-top: 0.625em;
	color: var( --sp-c-muted );
	font-size: 0.875rem;
	text-align: center;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content hr,
body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-separator {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var( --sp-c-border );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content code {
	padding: 0.125em 0.375em;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 6px;
	font-size: 0.9em;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content pre {
	padding: 1.25rem;
	overflow-x: auto;
	background: #0b0b0b;
	border-radius: 14px;
	color: #f2f2f2;
	font-size: 0.875rem;
	line-height: 1.6;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content pre code {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content table {
	width: 100%;
	border: 1px solid var( --sp-c-border );
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	font-size: 0.9375rem;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content th,
body:is( .sp-content--page, .sp-content--post ) .entry-content td {
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid var( --sp-c-border );
	text-align: left;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content thead th {
	background: var( --sp-c-surface );
	color: var( --sp-black, #000000 );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content tr:last-child td {
	border-bottom: 0;
}

/* Editor buttons */
body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	background: var( --sp-orange, #e8620a );
	border: 1px solid var( --sp-orange, #e8620a );
	border-radius: 999px;
	color: var( --sp-black, #000000 );
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-button__link:hover {
	background: var( --sp-c-hover );
	border-color: var( --sp-c-hover );
	color: var( --sp-white, #ffffff );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-button__link:focus-visible {
	background: var( --sp-c-hover );
	border-color: var( --sp-c-hover );
	color: var( --sp-white, #ffffff );
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content .wp-block-button__link:active {
	background: var( --sp-c-pressed );
	transform: translateY( 1px );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var( --sp-black, #000000 );
	color: var( --sp-black, #000000 );
}

body:is( .sp-content--page, .sp-content--post ) .entry-content .is-style-outline .wp-block-button__link:hover,
body:is( .sp-content--page, .sp-content--post ) .entry-content .is-style-outline .wp-block-button__link:focus-visible {
	background: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

/* ==========================================================================
   6. Single post extras
   ========================================================================== */

body.sp-content--post .single-entry .post-thumbnail {
	max-width: var( --sp-c-measure );
	margin: 0 0 2.5rem;
	overflow: hidden;
	border-radius: 20px;
}

body.sp-content--post .single-entry .post-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.sp-content--post .entry-footer {
	max-width: var( --sp-c-measure );
	margin-top: 2.5rem;
}

body.sp-content .entry-tags a,
body.sp-content .tags-links a {
	display: inline-flex;
	margin: 0 0.375rem 0.375rem 0;
	padding: 0.375rem 0.875rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 999px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

body.sp-content .entry-tags a:hover,
body.sp-content .tags-links a:hover {
	border-color: var( --sp-black, #000000 );
	color: var( --sp-black, #000000 );
}

body.sp-content .entry-tags a:focus-visible,
body.sp-content .tags-links a:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

/* Previous / next post */
body.sp-content .post-navigation {
	max-width: var( --sp-c-measure );
	margin: 3rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid var( --sp-c-border );
}

body.sp-content .post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

body.sp-content .post-navigation a {
	display: block;
	height: 100%;
	padding: 1.125rem 1.25rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 16px;
	color: var( --sp-black, #000000 );
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

body.sp-content .post-navigation .nav-next {
	text-align: right;
}

body.sp-content .post-navigation .post-navigation-sub {
	display: block;
	margin-bottom: 0.375rem;
	color: var( --sp-c-hover );
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.sp-content .post-navigation a:hover {
	border-color: var( --sp-black, #000000 );
}

body.sp-content .post-navigation a:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content .post-navigation a:active {
	transform: translateY( 1px );
}

/* Author box */
body.sp-content .entry-author {
	max-width: var( --sp-c-measure );
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 20px;
}

/* ==========================================================================
   7. Comments
   ========================================================================== */

body.sp-content .comments-area {
	max-width: var( --sp-c-measure );
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var( --sp-c-border );
}

body.sp-content .comments-title,
body.sp-content .comment-reply-title {
	margin: 0 0 1.25rem;
	color: var( --sp-black, #000000 );
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

body.sp-content .comment-list {
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

body.sp-content .comment-list .comment,
body.sp-content .comment-list .pingback {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

body.sp-content .comment-list .children {
	margin: 1rem 0 0 clamp( 1rem, 4vw, 2.5rem );
	padding: 0;
	list-style: none;
}

body.sp-content .comment-body {
	padding: 1.25rem 1.5rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 16px;
}

body.sp-content .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	margin-bottom: 0.75rem;
}

body.sp-content .comment-author {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: var( --sp-black, #000000 );
	font-weight: 600;
}

body.sp-content .comment-author .avatar {
	position: static;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

body.sp-content .comment-author .says {
	display: none;
}

body.sp-content .comment-metadata,
body.sp-content .comment-metadata a {
	color: var( --sp-c-muted );
	font-size: 0.8125rem;
	text-decoration: none;
}

body.sp-content .comment-content {
	color: var( --sp-c-text );
	font-size: 0.9375rem;
	line-height: 1.65;
}

body.sp-content .comment-content a {
	color: var( --sp-c-hover );
}

body.sp-content .comment-awaiting-moderation {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: var( --sp-c-hover );
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 600;
}

/* Reply link */
body.sp-content .comment-body .reply {
	margin-top: 0.75rem;
}

body.sp-content .comment-reply-link {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0.25rem 0.875rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border );
	border-radius: 999px;
	color: var( --sp-black, #000000 );
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.sp-content .comment-reply-link:hover {
	background: var( --sp-black, #000000 );
	border-color: var( --sp-black, #000000 );
	color: var( --sp-white, #ffffff );
}

body.sp-content .comment-reply-link:focus-visible {
	outline: none;
	box-shadow: var( --sp-c-ring );
}

/* Comment form (shared field styles with My account) */
body.sp-content .comment-form input[type="text"],
body.sp-content .comment-form input[type="email"],
body.sp-content .comment-form input[type="url"],
body.sp-content .comment-form textarea,
body.sp-content .woocommerce form .input-text,
body.sp-content .woocommerce form select {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 1rem;
	background: var( --sp-white, #ffffff );
	border: 1px solid var( --sp-c-border-strong );
	border-radius: 12px;
	box-shadow: none;
	color: var( --sp-black, #000000 );
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.sp-content .comment-form input:hover,
body.sp-content .comment-form textarea:hover,
body.sp-content .woocommerce form .input-text:hover,
body.sp-content .woocommerce form select:hover {
	border-color: var( --sp-c-muted );
}

body.sp-content .comment-form input:focus,
body.sp-content .comment-form textarea:focus,
body.sp-content .woocommerce form .input-text:focus,
body.sp-content .woocommerce form select:focus {
	border-color: var( --sp-black, #000000 );
	outline: none;
	box-shadow: 0 0 0 3px rgba( 232, 98, 10, 0.25 );
}

body.sp-content .comment-form input:user-invalid,
body.sp-content .comment-form textarea:user-invalid,
body.sp-content .woocommerce form .woocommerce-invalid .input-text {
	border-color: var( --global-palette13, #b82105 );
	box-shadow: 0 0 0 3px rgba( 184, 33, 5, 0.12 );
}

body.sp-content .comment-form .float-label {
	color: var( --sp-c-muted );
}

body.sp-content .comment-form input[type="checkbox"],
body.sp-content .woocommerce form input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var( --sp-black, #000000 );
	cursor: pointer;
}

body.sp-content .comment-notes,
body.sp-content .logged-in-as,
body.sp-content .comment-form-cookies-consent label {
	color: var( --sp-c-muted );
	font-size: 0.875rem;
}

/* Submit buttons: comment form + WooCommerce account forms */
body.sp-content .comment-form input[type="submit"],
body.sp-content .woocommerce .button,
body.sp-content .woocommerce button.button,
body.sp-content .woocommerce a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1.5rem;
	background: var( --sp-orange, #e8620a );
	border: 1px solid var( --sp-orange, #e8620a );
	border-radius: 999px;
	box-shadow: none;
	color: var( --sp-black, #000000 );
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.sp-content .comment-form input[type="submit"]:hover,
body.sp-content .woocommerce .button:hover,
body.sp-content .woocommerce button.button:hover,
body.sp-content .woocommerce a.button:hover {
	background: var( --sp-c-hover );
	border-color: var( --sp-c-hover );
	box-shadow: none;
	color: var( --sp-white, #ffffff );
}

body.sp-content .comment-form input[type="submit"]:focus-visible,
body.sp-content .woocommerce .button:focus-visible,
body.sp-content .woocommerce button.button:focus-visible,
body.sp-content .woocommerce a.button:focus-visible {
	background: var( --sp-c-hover );
	border-color: var( --sp-c-hover );
	color: var( --sp-white, #ffffff );
	outline: none;
	box-shadow: var( --sp-c-ring );
}

body.sp-content .comment-form input[type="submit"]:active,
body.sp-content .woocommerce .button:active,
body.sp-content .woocommerce button.button:active,
body.sp-content .woocommerce a.button:active {
	background: var( --sp-c-pressed );
	border-color: var( --sp-c-pressed );
	color: var( --sp-white, #ffffff );
	transform: translateY( 1px );
}

body.sp-content .comment-form input[type="submit"]:disabled,
body.sp-content .woocommerce .button:disabled,
body.sp-content .woocommerce .button.disabled {
	background: var( --global-palette8, #f5f5f5 );
	border-color: var( --global-palette7, #e2e2e2 );
	color: var( --sp-c-muted );
	transform: none;
	cursor: not-allowed;
}

/* ==========================================================================
   8. Notices (WooCommerce, on account / content pages)
   ========================================================================== */

body.sp-content .woocommerce-message,
body.sp-content .woocommerce-info,
body.sp-content .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var( --sp-c-surface );
	border: 1px solid var( --sp-c-border );
	border-radius: 12px;
	color: var( --global-palette4, #1a1a1a );
	font-size: 0.9375rem;
	line-height: 1.5;
	list-style: none;
}

body.sp-content .woocommerce-message {
	background: rgba( 19, 97, 46, 0.05 );
	border-color: rgba( 19, 97, 46, 0.22 );
}

body.sp-content .woocommerce-error {
	background: rgba( 184, 33, 5, 0.05 );
	border-color: rgba( 184, 33, 5, 0.22 );
}

body.sp-content :is( .woocommerce-message, .woocommerce-info, .woocommerce-error ) > .button {
	order: 2;
	margin-left: auto;
}

body.sp-content .woocommerce-message::before,
body.sp-content .woocommerce-info::before,
body.sp-content .woocommerce-error::before {
	display: none;
}

body.sp-content .woocommerce-error li {
	margin: 0;
}

/* ==========================================================================
   9. Responsive + reduced motion
   ========================================================================== */

@media ( max-width: 600px ) {
	body.sp-content .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	body.sp-content .post-navigation .nav-next {
		text-align: left;
	}

	.sp-page-search {
		padding-left: 2.75rem;
	}

	body.sp-content .sp-page-search__btn {
		padding: 0 1rem;
	}

	body.sp-content .comment-list .children {
		margin-left: 0.5rem;
		padding-left: 0.75rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	body.sp-content article.loop-entry,
	body.sp-content article.loop-entry:hover,
	body.sp-content article.loop-entry .post-thumbnail img,
	.sp-page-filter,
	body.sp-content .woocommerce .button,
	body.sp-content .comment-form input[type="submit"] {
		transition: none;
		transform: none;
	}
}
