/**
 * SynthPress Blog front-end styles.
 * Design tokens mirror apps/web ArticleDetail + MarkdownPreview.
 */

:root {
	--sp-header-offset: 4.5rem;
}

/* Accessibility ------------------------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--surface);
	border-radius: 0.375rem;
	box-shadow: var(--wp--preset--shadow--medium);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--foreground);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Header ------------------------------------------------------------------- */

.sp-site-header {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: sticky;
	top: 0;
	z-index: 50;
}

body.admin-bar {
	--sp-header-offset: calc(4.5rem + 32px);
}

body.admin-bar .sp-site-header {
	top: 32px;
}

.sp-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.25rem;
	padding-block: 0.75rem;
}

.sp-site-header .wp-block-navigation {
	gap: 0.25rem;
}

.sp-site-header .wp-block-navigation a {
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.sp-site-header .wp-block-navigation a:hover {
	background: var(--wp--preset--color--surface-hover);
	text-decoration: none;
}

.sp-site-header .wp-block-search {
	margin: 0;
	width: min(14rem, 30vw);
}

.sp-site-header .wp-block-search__inside-wrapper {
	min-height: 2.75rem;
	border-color: var(--wp--preset--color--border);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
	padding: 0.2rem;
}

.sp-site-header .wp-block-search__input {
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 0.875rem;
}

.sp-site-header .wp-block-search__button {
	min-width: 2.35rem;
	min-height: 2.35rem;
	margin: 0;
	padding: 0.55rem;
	border-radius: 0.4rem;
}

@media (max-width: 680px) {
	.sp-site-header__inner {
		flex-wrap: nowrap;
	}

	.sp-site-header .wp-block-search {
		width: clamp(6rem, 29vw, 8.5rem);
	}
}

@media (max-width: 782px) {
	body.admin-bar {
		--sp-header-offset: calc(4.5rem + 46px);
	}

	body.admin-bar .sp-site-header {
		top: 46px;
	}
}

/* Footer ------------------------------------------------------------------- */

.sp-site-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	margin-top: 4rem;
}

.sp-site-footer a {
	text-decoration: none;
	color: var(--wp--preset--color--secondary);
}

.sp-site-footer a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.sp-site-footer .wp-block-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
	font-size: 0.875rem;
}

.sp-site-footer .wp-block-shortcode {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

/* Cards & hero ------------------------------------------------------------- */

.sp-card,
.sp-article-header,
.sp-article-body,
.sp-author-card,
.sp-review-box,
.sp-related,
.sp-newsletter,
.sp-trust-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: var(--wp--preset--shadow--small);
}

.sp-hero {
	overflow: hidden;
}

.sp-hero > .wp-block-query,
.sp-hero .wp-block-post-template,
.sp-hero .wp-block-columns {
	width: 100%;
	max-width: none;
}

.sp-hero .wp-block-columns {
	align-items: center;
	margin: 0;
}

.sp-hero__media,
.sp-post-card__media.wp-block-post-featured-image,
.sp-post-card .wp-block-post-featured-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-hover);
}

.sp-hero__media img,
.sp-post-card__media img,
.sp-post-card .wp-block-post-featured-image img,
.sp-related__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	border-radius: 0;
	aspect-ratio: auto !important;
}

.sp-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.85rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: var(--wp--preset--shadow--small);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sp-post-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--border));
	box-shadow: var(--wp--preset--shadow--medium);
}

.sp-post-card .wp-block-post-title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.35;
}

.sp-post-card .wp-block-post-title a {
	text-decoration: none;
}

.sp-post-card .wp-block-post-excerpt {
	margin: 0;
	flex: 1;
}

.sp-post-card__media {
	overflow: hidden;
	border-radius: 0.75rem;
}

.sp-post-card__media img,
.sp-post-card .wp-block-post-featured-image img {
	transition: transform 180ms ease;
}

.sp-post-card__media a:hover img {
	transform: scale(1.015);
}

.sp-post-card__category,
.sp-related__category,
.sp-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.sp-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.65rem;
	margin: 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.sp-post-meta__sep {
	opacity: 0.7;
}

/* Article ------------------------------------------------------------------ */

.sp-article-layout {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
}

.sp-article-main {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
	width: 100%;
}

/* Only create a sticky sidebar when a real TOC was rendered. */
@media (min-width: 1100px) {
	body.sp-has-toc .sp-article-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 15.5rem;
		align-items: start;
		gap: 1.75rem;
		max-width: 1120px;
		margin-inline: auto;
	}

	body.sp-has-toc .sp-article-layout > .sp-toc {
		grid-column: 2;
		grid-row: 1 / span 2;
		position: sticky;
		top: calc(var(--sp-header-offset) + 1rem);
		align-self: start;
		max-height: calc(100vh - var(--sp-header-offset) - 2rem);
		overflow-y: auto;
		scrollbar-gutter: stable;
		scrollbar-width: thin;
	}

	body.sp-has-toc .sp-article-layout > .sp-article-header {
		grid-column: 1;
		grid-row: 1;
	}

	body.sp-has-toc .sp-article-layout > .sp-article-main {
		grid-column: 1;
		grid-row: 2;
	}
}

.sp-article-header {
	padding: 1.35rem 1.35rem 1.5rem;
}

@media (min-width: 640px) {
	.sp-article-header {
		padding: 1.75rem;
	}
}

.sp-article-header .sp-eyebrow {
	margin: 0;
}

.sp-article-header .wp-block-post-terms {
	margin: 0;
}

.sp-article-header__title {
	margin: 0.85rem 0 0;
	max-width: 48rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

@media (max-width: 480px) {
	.sp-article-header__title {
		font-size: 1.875rem;
		line-height: 1.16;
	}
}

.sp-article-header__excerpt {
	margin: 1rem 0 0;
	color: var(--wp--preset--color--secondary);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.sp-article-header__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem !important;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

.sp-article-header__byline .wp-block-post-author {
	display: flex;
	align-items: center;
	margin: 0;
}

.sp-article-header__byline .wp-block-post-author__content {
	font-size: 0.875rem;
}

.sp-article-header__author {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.sp-article-header__author img {
	border-radius: 9999px;
	width: 2rem;
	height: 2rem;
}

.sp-featured-image,
.sp-article-header .wp-block-post-featured-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin: 1.35rem 0 0;
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-hover);
}

.sp-featured-image a,
.sp-article-header .wp-block-post-featured-image a {
	pointer-events: none;
	cursor: default;
	display: block;
	width: 100%;
	height: 100%;
}

/*
 * Core featured-image blocks with aspectRatio emit inline
 * height:100%/width:100% on the <img>. That collapses unless the
 * wrapper owns the aspect box. Fill the wrapper explicitly.
 */
.sp-featured-image img,
.sp-article-header .wp-block-post-featured-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center;
	border: 0;
	border-radius: 0;
	aspect-ratio: auto !important;
}

/* Hide empty featured-image wrappers (no media). */
.wp-block-post-featured-image:empty,
.wp-block-post-featured-image:not(:has(img)) {
	display: none !important;
}

.sp-featured-image figcaption,
.sp-article-header .wp-block-post-featured-image figcaption {
	position: static;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.sp-article-body {
	padding: 1.35rem 1.35rem 1.75rem;
}

@media (min-width: 640px) {
	.sp-article-body {
		padding: 1.75rem 1.75rem 2rem;
	}
}

.sp-article-body .wp-block-post-content {
	font-size: 1.015625rem;
	line-height: 1.75;
	color: var(--wp--preset--color--foreground);
}

.sp-article-body .wp-block-post-content > *:first-child {
	margin-top: 0;
}

.sp-article-footer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sp-article-footer :is(.sp-share, .sp-review-box, .sp-author-card) {
	margin-top: 0;
}

.entry-content :is(h2, h3, h4, h5, h6),
.wp-block-post-content :is(h2, h3, h4, h5, h6) {
	scroll-margin-top: calc(var(--sp-header-offset) + 1rem);
}

.wp-block-post-content h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.5rem, 3.5vw, 1.75rem);
	line-height: 1.25;
}

.wp-block-post-content h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.65rem;
	font-size: clamp(1.25rem, 2.75vw, 1.4rem);
	line-height: 1.3;
}

.wp-block-post-content p {
	margin-block: 1rem;
}

.wp-block-post-content :is(ul, ol) {
	margin-block: 1rem;
	padding-left: 1.35rem;
}

.wp-block-post-content li {
	margin-block: 0.35rem;
}

.wp-block-post-content a {
	color: var(--wp--preset--color--primary);
	text-underline-offset: 2px;
}

/* SynthPress section images (injected under H2s by the publishing flow) */

.wp-block-post-content figure.synthpress-section-image,
.entry-content figure.synthpress-section-image {
	margin-block: clamp(2rem, 5vw, 3rem);
}

.wp-block-post-content figure.synthpress-section-image img,
.entry-content figure.synthpress-section-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 28rem;
	object-fit: contain;
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	background: color-mix(in srgb, var(--wp--preset--color--surface-hover) 60%, transparent);
}

.wp-block-post-content img:not(.sp-featured-image img),
.entry-content img:not(.sp-featured-image img) {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 28rem;
	margin-inline: auto;
	object-fit: contain;
	border-radius: 0.75rem;
}

.wp-block-post-content figure.synthpress-section-image figcaption,
.entry-content figure.synthpress-section-image figcaption {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: left;
}

.wp-block-post-content blockquote,
.entry-content blockquote {
	border-left: 2px solid var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--surface-hover) 60%, transparent);
	border-radius: 0 0.5rem 0.5rem 0;
	padding: 0.75rem 1rem 0.75rem 1.25rem;
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

.synthpress-table-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.5rem;
}

.synthpress-table-wrap table,
.wp-block-post-content table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-post-content > table,
.entry-content > table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.wp-block-post-content th,
.entry-content th {
	background: var(--wp--preset--color--surface-hover);
	text-align: left;
	font-weight: 600;
}

.wp-block-post-content :is(th, td),
.entry-content :is(th, td) {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.65rem 0.75rem;
}

.wp-block-post-content pre,
.entry-content pre {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre;
}

/* TOC ---------------------------------------------------------------------- */

.sp-toc {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	padding: 0.85rem 1rem;
	box-shadow: var(--wp--preset--shadow--small);
}

.sp-toc__summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9375rem;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--wp--preset--color--foreground);
}

.sp-toc__summary::-webkit-details-marker {
	display: none;
}

.sp-toc__summary::after {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid var(--wp--preset--color--muted);
	border-bottom: 2px solid var(--wp--preset--color--muted);
	transform: rotate(45deg);
	transition: transform 160ms ease;
	flex-shrink: 0;
}

.sp-toc__details[open] > .sp-toc__summary::after {
	transform: rotate(225deg);
	margin-top: 0.2rem;
}

.sp-toc__list {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.2rem;
}

.sp-toc__item a {
	display: block;
	padding: 0.4rem 0.5rem;
	border-radius: 0.375rem;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.4;
}

.sp-toc__item a:hover,
.sp-toc__item a[aria-current="true"] {
	background: var(--wp--preset--color--info);
	color: var(--wp--preset--color--primary);
}

.sp-toc__item--h3 {
	padding-left: 0.75rem;
}

/* Reading progress --------------------------------------------------------- */

.sp-reading-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 60;
	pointer-events: none;
	background: transparent;
}

body.admin-bar .sp-reading-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .sp-reading-progress {
		top: 46px;
	}
}

.sp-reading-progress__bar {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
	.sp-post-card__media img,
	.sp-reading-progress__bar {
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Author / review / share / related ---------------------------------------- */

.sp-author-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	padding: 1.25rem;
	margin-top: 2rem;
}

.sp-author-card__image {
	border-radius: 9999px;
}

.sp-author-card__label,
.sp-author-card__role,
.sp-author-card__count {
	margin: 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.sp-author-card__name {
	margin: 0.15rem 0;
	font-size: 1.125rem;
}

.sp-author-card__name a {
	color: inherit;
	text-decoration: none;
}

.sp-author-card__bio {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--secondary);
	line-height: 1.6;
}

.sp-review-box {
	padding: 1.25rem;
	margin-top: 1.5rem;
	background: var(--wp--preset--color--info);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 25%, var(--wp--preset--color--border));
}

.sp-review-box__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.sp-review-box__list {
	margin: 0;
	padding-left: 1.1rem;
	display: grid;
	gap: 0.35rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--secondary);
}

.sp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
}

.sp-share__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.sp-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-share__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--secondary);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
}

.sp-share__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.sp-related {
	padding: 1.5rem;
	margin-top: 2rem;
}

.sp-related__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.sp-related__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.sp-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sp-related__card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.sp-related__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface-hover);
}

.sp-related__card-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.sp-related__card-title a {
	color: inherit;
	text-decoration: none;
}

.sp-related__card-title a:hover {
	color: var(--wp--preset--color--primary);
}

.sp-related__meta {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.sp-post-navigation:not(:has(a)) {
	display: none;
}

/* Homepage / archive sections ---------------------------------------------- */

.sp-section {
	margin-block: 3rem;
}

.sp-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.25rem;
}

.sp-section__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.sp-section__desc {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--muted);
	max-width: 40rem;
}

.sp-topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.sp-topic-list li {
	margin: 0;
}

.sp-topic-list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 9999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--secondary);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.sp-topic-list a:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.sp-topic-list .cat-item-count {
	margin-left: 0.35rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

.sp-newsletter,
.sp-trust-panel,
.sp-empty-state {
	padding: 1.75rem;
}

.sp-newsletter {
	background:
		linear-gradient(135deg, color-mix(in srgb, #2563eb 8%, white), color-mix(in srgb, #7c3aed 8%, white)),
		var(--wp--preset--color--surface);
}

.sp-empty-state {
	text-align: center;
}

.sp-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1rem;
	min-width: 0;
}

.sp-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	opacity: 0.55;
}

.sp-breadcrumbs__item:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(32rem, 58vw);
}

.sp-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.sp-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

/* Comments optional -------------------------------------------------------- */

.sp-comments {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Query pagination --------------------------------------------------------- */

.wp-block-query-pagination {
	margin-top: 2rem;
	gap: 0.75rem;
}

.wp-block-query-pagination a {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
}

.wp-block-query-pagination a:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
