/* Supporto Catalog: plugin cards, plugin pages, pricing and docs. Colours come from theme.json. */

:root {
	--spc-teal: var(--wp--preset--color--brand, #046a81);
	--spc-teal-dark: var(--wp--preset--color--brand-dark, #113453);
	--spc-head: var(--wp--preset--color--night, #0c2135);
	--spc-green: var(--wp--preset--color--accent, #0a8a7f);
	--spc-grey: var(--wp--preset--color--surface, #f2f7f8);
	--spc-line: var(--wp--preset--color--line, #dce6ea);
	--spc-muted: var(--wp--preset--color--muted, #566874);
	--spc-shadow: var(--wp--custom--shadow, 0 10px 30px rgba(12, 33, 53, 0.1));
}

.spc-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-soft, #e2f4f2);
	color: var(--spc-teal-dark);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
}

.spc-tag--pro {
	background: #e2f4f2;
	color: #0a8a7f;
}

.spc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	border: 2px solid var(--spc-teal);
	border-radius: 8px;
	background: var(--spc-teal);
	color: #fff !important;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.spc-btn:hover {
	background: var(--spc-teal-dark);
	border-color: var(--spc-teal-dark);
}

.spc-btn--accent {
	background: var(--wp--preset--color--accent, #17bca5);
	border-color: var(--wp--preset--color--accent, #17bca5);
	color: var(--spc-head) !important;
}

.spc-btn--accent:hover {
	background: var(--spc-teal-dark);
	border-color: var(--spc-teal-dark);
	color: #fff !important;
}

.sp-hero .spc-btn--accent {
	background: #fff;
	border-color: #fff;
	color: var(--spc-teal-dark) !important;
}

.spc-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
}

.spc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

.spc-btn--ghost-dark {
	background: transparent;
	color: var(--spc-teal) !important;
}

.spc-btn--ghost-dark:hover {
	background: var(--spc-teal);
	color: #fff !important;
}

.spc-btn--link {
	padding-inline: 0.5rem;
	border-color: transparent;
	background: transparent;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.spc-btn--link:hover {
	background: transparent;
	border-color: transparent;
}

/* Plugin cards */
.spc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.spc-card {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.5rem;
	border: 1px solid var(--spc-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(12, 33, 53, 0.06), 0 2px 8px rgba(12, 33, 53, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.spc-card:hover {
	transform: translateY(-3px);
	border-color: rgba(23, 188, 165, 0.5);
	box-shadow: var(--spc-shadow);
}

.spc-card h3 {
	order: 2;
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}

.spc-card h3 a {
	color: var(--spc-head);
	text-decoration: none;
}

.spc-card h3 a:hover {
	color: var(--spc-teal);
}

.spc-card > :not(h3):not(.spc-card-img) {
	order: 3;
}

.spc-card-img {
	order: 1;
	display: block;
	margin-bottom: 1.2rem;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(12, 33, 53, 0.08);
}

.spc-card-img img {
	display: block;
	width: 100%;
	height: auto;
}

.spc-card p {
	margin: 0 0 1rem;
	color: var(--spc-muted);
}

.spc-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-top: auto;
}

.spc-card-tags {
	display: flex;
	gap: 0.35rem;
}

.spc-discover {
	color: var(--spc-teal-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.spc-discover::after {
	content: " \203A";
}

/* Plugin page hero (sits in the theme gradient band) */
.spc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
	text-align: left;
}

.spc-hero-icon {
	width: 80px;
	height: 80px;
	margin-bottom: 1.1rem;
	border-radius: 18px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.spc-hero h1 {
	margin: 0.2rem 0 0.7rem;
	color: #fff;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	line-height: 1.2;
}

.spc-hero-lead {
	margin: 0 0 1.6rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.125rem;
	line-height: 1.6;
}

.spc-hero-art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.spc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.spc-crumbs {
	margin: 0 0 0.6rem;
	font-size: 0.875rem;
	color: var(--spc-muted);
}

.spc-crumbs a {
	color: var(--spc-teal-dark);
}

.spc-hero .spc-crumbs a {
	color: rgba(255, 255, 255, 0.85);
}

.spc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
}

.spc-meta li::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: var(--spc-green);
	vertical-align: 1px;
}

/* Features */
.spc-features {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem;
}

.spc-col {
	padding: 2rem;
	border-radius: 12px;
	background: #fff;
}

.spc-col--pro {
	border: 2px solid var(--spc-teal);
}

.spc-col h3 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.6rem;
	color: var(--spc-teal-dark);
	font-size: 1.2rem;
}

.spc-col h4 {
	margin: 1.3rem 0 0.5rem;
	color: var(--spc-head);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.spc-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spc-col li {
	position: relative;
	margin: 0 0 0.6rem;
	padding-left: 1.8rem;
	color: var(--spc-head);
	font-size: 0.9375rem;
}

.spc-col li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--spc-green);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pricing */
.spc-pricing {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	scroll-margin-top: 140px;
}

.spc-price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.8rem;
	border: 1px solid var(--spc-line);
	border-radius: 12px;
	background: #fff;
}

.spc-price-card.is-featured {
	border: 2px solid var(--spc-teal);
	box-shadow: var(--spc-shadow);
}

.spc-price-card.is-featured::before {
	content: "Best value";
	position: absolute;
	top: -0.8rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.2rem 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-dark, #1d5fd1);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}

.spc-price-card h3 {
	margin: 0 0 0.6rem;
	color: var(--spc-teal-dark);
	font-size: 1.1rem;
}

.spc-amount {
	display: flex;
	align-items: baseline;
	gap: 0.15rem;
	margin: 0 0 0.6rem;
	color: var(--spc-head);
}

.spc-amount span {
	font-size: 1.1rem;
	font-weight: 700;
}

.spc-amount strong {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
}

.spc-amount em {
	margin-left: 0.3rem;
	font-style: normal;
	font-size: 0.875rem;
	color: var(--spc-muted);
}

.spc-price-note {
	margin: 0 0 1.3rem;
	font-size: 0.9375rem;
	color: var(--spc-muted);
}

.spc-price-card .spc-btn {
	margin-top: auto;
}

.spc-fine {
	margin-top: 1.2rem;
	font-size: 0.875rem;
	color: var(--spc-muted);
	text-align: center;
}

/* Docs */
.spc-docs-search {
	display: flex;
	gap: 0;
	max-width: 620px;
	margin: 1.6rem auto 0;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.spc-docs-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.95rem 1.3rem;
	border: 0;
	background: transparent;
	color: var(--spc-head);
	font: inherit;
}

.spc-docs-search input[type="search"]:focus {
	outline: none;
}

.spc-docs-search button {
	margin: 5px;
	padding: 0 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--spc-teal);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.spc-hub {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.spc-hub-card {
	padding: 1.8rem;
	border-radius: 12px;
	background: var(--spc-grey);
}

.spc-hub-head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1rem;
	color: var(--spc-teal-dark) !important;
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}

.spc-hub-head img {
	border-radius: 10px;
}

.spc-hub-card ul {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
}

.spc-hub-card li {
	margin-bottom: 0.35rem;
}

.spc-hub-all {
	font-weight: 600;
}

.spc-hub-all::after {
	content: " \203A";
}

.spc-doc-nav {
	position: sticky;
	top: 140px;
	padding: 1.4rem;
	border-radius: 12px;
	background: var(--spc-grey);
	font-size: 0.9375rem;
}

.spc-doc-nav-root {
	display: block;
	margin-bottom: 0.7rem;
	color: var(--spc-teal-dark) !important;
	font-weight: 700;
	text-decoration: none;
}

.spc-doc-nav ol {
	margin: 0 0 1rem;
	padding-left: 1.2rem;
}

.spc-doc-nav li {
	margin-bottom: 0.4rem;
}

.spc-doc-nav a {
	color: var(--spc-head);
	text-decoration: none;
}

.spc-doc-nav a:hover {
	color: var(--spc-teal);
}

.spc-doc-nav a.is-current {
	color: var(--spc-teal);
	font-weight: 700;
}

.spc-doc-nav-plugin {
	display: block;
	margin-top: 0.4rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--spc-line);
	color: var(--spc-teal-dark) !important;
	font-weight: 600;
}

.spc-doc-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	counter-reset: d;
}

.spc-doc-list li {
	counter-increment: d;
	margin-bottom: 0.75rem;
}

.spc-doc-list a {
	position: relative;
	display: block;
	padding: 1.1rem 1.3rem 1.1rem 3.6rem;
	border-radius: 10px;
	background: var(--spc-grey);
	color: inherit !important;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.spc-doc-list a:hover {
	box-shadow: var(--spc-shadow);
}

.spc-doc-list a::before {
	content: counter(d);
	position: absolute;
	left: 1.2rem;
	top: 1.1rem;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--spc-teal);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7rem;
	text-align: center;
}

.spc-doc-list strong {
	display: block;
	color: var(--spc-teal-dark);
}

.spc-doc-list span {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.9375rem;
	color: var(--spc-muted);
}

.spc-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}

.spc-pager a {
	padding: 1rem 1.3rem;
	border: 1px solid var(--spc-line);
	border-radius: 10px;
	color: var(--spc-teal-dark);
	font-weight: 600;
	text-decoration: none;
}

.spc-pager a:hover {
	border-color: var(--spc-teal);
}

.spc-pager span {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--spc-muted);
}

.spc-next {
	grid-column: 2;
	text-align: right;
}

/* Guide content */
.sp-doc-body img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--spc-line);
	border-radius: 10px;
}

.sp-doc-body figure {
	margin: 1.4rem 0;
}

.sp-doc-body figure.half img {
	max-width: 70%;
}

.sp-doc-body figcaption {
	margin-top: 0.4rem;
	font-size: 0.875rem;
	color: var(--spc-muted);
}

.sp-doc-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.sp-doc-body th,
.sp-doc-body td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--spc-line);
	text-align: left;
	vertical-align: top;
}

.sp-doc-body th {
	background: var(--spc-grey);
}

.sp-doc-body .note {
	padding: 0.9rem 1.1rem;
	border-left: 4px solid var(--spc-teal);
	border-radius: 6px;
	background: var(--wp--preset--color--brand-soft, #e2f4f2);
}

.sp-doc-body .card {
	margin-bottom: 0.8rem;
	padding: 1.1rem 1.3rem;
	border-radius: 10px;
	background: var(--spc-grey);
}

.sp-doc-body .card h3 {
	margin-top: 0;
}

.sp-doc-body .grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.sp-doc-body .steps {
	padding-left: 1.2rem;
}

.sp-doc-body .yes {
	color: #0a8a7f;
	font-weight: 700;
}

.sp-doc-body .no {
	color: #9aa5aa;
}

@media (max-width: 1000px) {
	.spc-screens {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spc-pricing {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}

	.spc-hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.spc-grid,
	.spc-screens,
	.spc-features,
	.spc-pricing,
	.spc-hub,
	.sp-doc-body .grid2 {
		grid-template-columns: 1fr;
	}

	.spc-pager {
		grid-template-columns: 1fr;
	}

	.spc-next {
		grid-column: 1;
	}

	.spc-doc-nav {
		position: static;
	}
}


/* Screenshot gallery */
.spc-gallery {
	max-width: 1040px;
	margin: 0 auto;
}

.spc-gal-stage {
	position: relative;
	border: 1px solid var(--spc-line);
	border-radius: 18px;
	background: linear-gradient(180deg, #f6fafb, #eef4f6);
	box-shadow: 0 24px 60px rgba(12, 33, 53, 0.12);
	overflow: hidden;
}

.spc-gal-main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(260px, 52vw, 560px);
	padding: clamp(0.75rem, 2.5vw, 2rem);
	border: 0;
	background: none;
	cursor: zoom-in;
}

.spc-gal-main img {
	display: block;
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(12, 33, 53, 0.16);
	transition: opacity 0.18s ease;
}

.spc-gal-main img.is-swapping {
	opacity: 0.35;
}

.spc-gal-zoom {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(12, 33, 53, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.spc-gal-main:hover .spc-gal-zoom,
.spc-gal-main:focus-visible .spc-gal-zoom {
	opacity: 1;
}

.spc-gal-nav {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 1px solid var(--spc-line);
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2135' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: 0 6px 18px rgba(12, 33, 53, 0.15);
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.spc-gal-nav:hover {
	border-color: var(--wp--preset--color--accent, #17bca5);
	transform: scale(1.06);
}

.spc-gal-prev {
	left: 1rem;
}

.spc-gal-next {
	right: 1rem;
	transform: rotate(180deg);
}

.spc-gal-next:hover {
	transform: rotate(180deg) scale(1.06);
}

.spc-gal-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0.25rem 0.9rem;
}

.spc-gal-cap {
	margin: 0;
	color: var(--spc-head);
	font-weight: 600;
}

.spc-gal-count {
	flex: none;
	color: var(--spc-muted);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.spc-gal-thumbs {
	display: flex;
	gap: 0.7rem;
	padding: 0.25rem 0.25rem 0.6rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.spc-gal-thumb {
	flex: 0 0 auto;
	width: 132px;
	height: 84px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--spc-line);
	cursor: pointer;
	overflow: hidden;
	scroll-snap-align: center;
	opacity: 0.65;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.spc-gal-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.spc-gal-thumb:hover {
	opacity: 1;
}

.spc-gal-thumb.is-active {
	border-color: var(--wp--preset--color--accent, #17bca5);
	opacity: 1;
}

/* Image viewer */
.spc-lb-open,
.spc-lb-open body {
	overflow: hidden;
}

.spc-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(6, 16, 28, 0.97);
	color: #fff;
	animation: spc-fade 0.18s ease;
}

.spc-lb[hidden] {
	display: none;
}

@keyframes spc-fade {
	from {
		opacity: 0;
	}
}

.spc-lb-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.2rem;
}

.spc-lb-count {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.spc-lb-btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08) center / 20px no-repeat;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.spc-lb-btn:hover {
	background-color: rgba(255, 255, 255, 0.18);
}

.spc-lb-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #17bca5);
	outline-offset: 2px;
}

.spc-lb-btn[hidden] {
	display: none;
}

.spc-lb-close {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.spc-lb-arrow {
	flex: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.spc-lb-next {
	transform: rotate(180deg);
}

.spc-lb-body {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 1rem;
	min-height: 0;
	padding: 0 1.2rem;
}

.spc-lb-figure {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	margin: 0;
}

.spc-lb-img {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 3rem);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.spc-lb-img.is-in {
	opacity: 1;
	transform: none;
}

.spc-lb-cap {
	margin-top: 0.9rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9375rem;
	text-align: center;
}

.spc-lb-strip {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.2rem 1.1rem;
	overflow-x: auto;
}

.spc-lb-strip[hidden] {
	display: none;
}

.spc-lb-thumb {
	flex: 0 0 auto;
	width: 84px;
	height: 54px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 7px;
	background: #fff;
	opacity: 0.5;
	overflow: hidden;
	cursor: pointer;
}

.spc-lb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.spc-lb-thumb.is-active,
.spc-lb-thumb:hover {
	opacity: 1;
}

.spc-lb-thumb.is-active {
	border-color: var(--wp--preset--color--accent, #17bca5);
}

.spc-zoomable {
	cursor: zoom-in;
}

/* Features: each column as tall as its own content */
.spc-features {
	align-items: start;
}

.spc-col {
	border: 1px solid var(--spc-line);
	box-shadow: 0 1px 2px rgba(12, 33, 53, 0.06), 0 2px 8px rgba(12, 33, 53, 0.04);
}

.spc-col--pro {
	border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #17bca5, #077a95 55%, #113453) border-box;
}

.spc-col h3 {
	margin-top: 0;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--spc-line);
}

.spc-col h4:first-of-type {
	margin-top: 1.2rem;
}

/* FAQ */
.spc-faq {
	max-width: 820px;
	margin: 0 auto;
}

.spc-faq details {
	margin-bottom: 0.75rem;
	border: 1px solid var(--spc-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(12, 33, 53, 0.05);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spc-faq details[open] {
	border-color: var(--wp--preset--color--accent, #17bca5);
	box-shadow: var(--spc-shadow);
}

.spc-faq summary {
	position: relative;
	padding: 1.1rem 3.2rem 1.1rem 1.4rem;
	color: var(--spc-head);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.spc-faq summary::-webkit-details-marker {
	display: none;
}

.spc-faq summary::after {
	content: "+";
	position: absolute;
	right: 1.3rem;
	top: 50%;
	transform: translateY(-52%);
	color: var(--wp--preset--color--accent, #17bca5);
	font-size: 1.5rem;
	font-weight: 400;
}

.spc-faq details[open] summary::after {
	content: "\2212";
}

.spc-faq p {
	margin: 0;
	padding: 0 1.4rem 1.2rem;
	color: var(--spc-muted);
}

/* Changelog */
.spc-changelog {
	position: relative;
	padding-left: 1.75rem;
}

.spc-changelog::before {
	content: "";
	position: absolute;
	left: 0.45rem;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 2px;
	border-radius: 2px;
	background: var(--spc-line);
}

.spc-changelog + .spc-changelog {
	margin-top: 2.5rem;
}

.spc-changelog-title {
	margin: 0 0 1rem -1.75rem;
	font-size: 1.25rem;
}

.spc-changelog-title a {
	color: var(--spc-head);
	text-decoration: none;
}

.spc-changelog-title a:hover {
	color: var(--spc-teal);
}

.spc-release {
	position: relative;
	margin-bottom: 1rem;
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--spc-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(12, 33, 53, 0.05);
}

.spc-release::before {
	content: "";
	position: absolute;
	left: -1.75rem;
	top: 1.45rem;
	width: 14px;
	height: 14px;
	margin-left: 0.05rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--spc-line);
	box-shadow: 0 0 0 1px var(--spc-line);
}

.spc-release.is-latest::before {
	background: var(--wp--preset--color--accent, #17bca5);
	box-shadow: 0 0 0 4px rgba(23, 188, 165, 0.2);
}

.spc-release-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.spc-version {
	color: var(--spc-head);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 800;
}

.spc-latest {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-soft, #e2f4f2);
	color: var(--wp--preset--color--accent-dark, #0a8a7f);
	font-size: 0.75rem;
	font-weight: 700;
}

.spc-release time {
	margin-left: auto;
	color: var(--spc-muted);
	font-size: 0.875rem;
}

.spc-release ul {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spc-release li {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	color: var(--spc-head);
	font-size: 0.9375rem;
}

.spc-chip {
	flex: none;
	min-width: 3.9rem;
	padding: 0.1rem 0.5rem;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.spc-chip.is-new {
	background: var(--wp--preset--color--brand-soft, #e2f4f2);
	color: var(--wp--preset--color--accent-dark, #0a8a7f);
}

.spc-chip.is-fix {
	background: #fdecec;
	color: #b42318;
}

.spc-chip.is-change {
	background: var(--wp--preset--color--blue-soft, #eaf1fe);
	color: var(--wp--preset--color--blue-dark, #1d5fd1);
}

.spc-changelog-all {
	max-width: 760px;
	margin: 0 auto;
}

@media (max-width: 782px) {
	.spc-gal-nav {
		width: 38px;
		height: 38px;
		margin-top: -19px;
	}

	.spc-gal-prev {
		left: 0.5rem;
	}

	.spc-gal-next {
		right: 0.5rem;
	}

	.spc-gal-thumb {
		width: 104px;
		height: 66px;
	}

	.spc-lb-body {
		padding: 0 0.5rem;
		gap: 0.4rem;
	}

	.spc-lb-body {
		position: relative;
		padding: 0;
	}

	.spc-lb-arrow {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 40px;
		height: 40px;
		margin-top: -20px;
		background-color: rgba(6, 16, 28, 0.6);
	}

	.spc-lb-prev {
		left: 0.4rem;
	}

	.spc-lb-next {
		right: 0.4rem;
	}

	.spc-lb-figure {
		padding: 0 0.5rem;
	}

	.spc-lb-img {
		border-radius: 6px;
	}

	.spc-lb-strip {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spc-lb,
	.spc-lb-img,
	.spc-gal-main img {
		animation: none;
		transition: none;
	}
}
