/**
 * Supein Nihonto Encyclopedia
 *
 * The palette intentionally keeps Supein Nihonto's gold while moving the
 * editorial experience towards ink blue, warm paper and Japanese seal red.
 * Edit the custom properties below to profile the complete design quickly.
 */

.sn-encyclopedia,
.supein-encyclopedia-entry,
.supein-encyclopedia-archive,
.supein-encyclopedia-category-archive {
	--sn-ink: #14202b;
	--sn-ink-soft: #223342;
	--sn-paper: #f3efe6;
	--sn-paper-deep: #e7dfd0;
	--sn-white: #ffffff;
	--sn-text: #36434d;
	--sn-muted: #69757d;
	--sn-gold: #c1a01e;
	--sn-gold-light: #d8bd55;
	--sn-gold-dark: #8c7011;
	--sn-seal: #8d2f35;
	--sn-line: rgba(20, 32, 43, 0.14);
	--sn-shadow: 0 24px 70px rgba(20, 32, 43, 0.13);
	--sn-serif: "Roboto Slab", Georgia, "Times New Roman", serif;
	--sn-sans: Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.supein-encyclopedia-entry,
body.supein-encyclopedia-archive,
body.supein-encyclopedia-category-archive {
	background: var(--sn-paper);
}

.sn-encyclopedia,
.sn-encyclopedia *,
.sn-encyclopedia *::before,
.sn-encyclopedia *::after {
	box-sizing: border-box;
}

.sn-encyclopedia {
	position: relative;
	overflow: clip;
	background: var(--sn-paper);
	color: var(--sn-text);
	font-family: var(--sn-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
}

.sn-encyclopedia a {
	color: #8c7011;
}

.sn-encyclopedia a :hover {
	color: #8064b3 !important;
}

.sn-container {
	width: min(1240px, calc(100% - 48px));
	margin-inline: auto;
}

.sn-reading-progress {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	pointer-events: none;
	background: transparent;
}

.sn-reading-progress span {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: linear-gradient(90deg, var(--sn-gold), var(--sn-gold-light));
	box-shadow: 0 0 12px rgba(193, 160, 30, 0.55);
}

.sn-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-breadcrumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.sn-breadcrumbs a:hover,
.sn-breadcrumbs a:focus-visible {
	color: var(--sn-gold-light);
}

.sn-eyebrow {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 18px;
	color: var(--sn-gold-light);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-eyebrow span {
	display: block;
	width: 42px;
	height: 1px;
	background: currentColor;
}

/* Single entry hero */

.sn-entry-hero {
	position: relative;
	display: flex;
	min-height: 470px;
	align-items: flex-end;
	isolation: isolate;
	background:
		radial-gradient(circle at 78% 18%, rgba(193, 160, 30, 0.19), transparent 34%),
		linear-gradient(125deg, #101820 0%, var(--sn-ink) 55%, #1f303d 100%);
}

.sn-entry-hero::after {
	position: absolute;
	z-index: -1;
	right: -80px;
	bottom: -150px;
	width: 430px;
	height: 430px;
	border: 1px solid rgba(216, 189, 85, 0.18);
	border-radius: 50%;
	box-shadow:
		0 0 0 48px rgba(216, 189, 85, 0.035),
		0 0 0 96px rgba(216, 189, 85, 0.025);
	content: "";
}

.sn-entry-hero__media,
.sn-entry-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.sn-entry-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	filter: saturate(0.82) contrast(1.08);
}

.sn-entry-hero__overlay {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(8, 14, 19, 0.94) 0%, rgba(10, 17, 23, 0.83) 46%, rgba(10, 17, 23, 0.42) 100%),
		linear-gradient(0deg, rgba(8, 14, 19, 0.72), transparent 58%);
}

.sn-entry-hero__inner {
	padding-block: 58px 104px;
}

.sn-entry-title {
	max-width: 1040px;
	margin: 0;
	color: var(--sn-white);
	font-family: var(--sn-serif);
	font-size: clamp(30px, 4.1vw, 50px);
	font-weight: 500;
	letter-spacing: 0.015em;
	line-height: 1.08;
	text-wrap: balance;
}

.sn-entry-deck {
	max-width: 820px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--sn-serif);
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.55;
}

.sn-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	margin-top: 30px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 13px;
	letter-spacing: 0.035em;
}

.sn-entry-meta__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sn-entry-meta__categories a {
	padding: 5px 11px;
	border: 1px solid rgba(216, 189, 85, 0.55);
	border-radius: 999px;
	color: var(--sn-gold-light);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.sn-entry-meta__categories :hover {
	background: #c1a01e !important;
}

.sn-entry-meta__categories a:hover {
	color: #ffffff !important;
}

/* Single entry content */

.sn-entry-layout {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 850px) minmax(240px, 300px);
	gap: 58px;
	align-items: start;
	margin-top: -58px;
	padding-bottom: 110px;
}

.sn-entry-paper {
	min-width: 0;
	padding: clamp(34px, 5vw, 68px);
	border-top: 4px solid var(--sn-gold);
	background: var(--sn-white);
	box-shadow: var(--sn-shadow);
}

.sn-entry-content {
	color: var(--sn-text);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.008em;
	line-height: 1.82;
}

.sn-entry-content > :first-child {
	margin-top: 0;
}

.sn-entry-content > :last-child {
	margin-bottom: 0;
}

.sn-entry-content p {
	margin: 0 0 1.4em;
	color: inherit;
	font: inherit;
}

.sn-entry-content > p:first-child {
	color: var(--sn-ink-soft);
	font-family: var(--sn-serif);
	font-size: 1.18em;
	line-height: 1.72;
}

.sn-entry-content h2,
.sn-entry-content h3,
.sn-entry-content h4 {
	scroll-margin-top: 120px;
	color: #8064b3 !important;
	font-family: var(--sn-serif);
	font-weight: 500;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

.sn-entry-content h2 {
	position: relative;
	margin: 2.15em 0 0.78em;
	padding-bottom: 14px;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.23;
}

.sn-entry-content h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 58px;
	height: 2px;
	background: linear-gradient(90deg, var(--sn-gold), var(--sn-gold-light));
	content: "";
}

.sn-entry-content h3 {
	margin: 1.9em 0 0.7em;
	color: var(--sn-seal);
	font-size: clamp(22px, 2.5vw, 28px);
	line-height: 1.3;
}

.sn-entry-content h4 {
	margin: 1.6em 0 0.6em;
	font-size: 20px;
	line-height: 1.4;
}

.sn-entry-content a {
	color: var(--sn-gold-dark);
	font-weight: 500;
	text-decoration-color: rgba(140, 112, 17, 0.4);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sn-entry-content a:hover,
.sn-entry-content a:focus-visible {
	color: #8064b3 !important;
	text-decoration-color: currentColor;
}

.sn-entry-content strong {
	color: #8064b3 !important;
	font-weight: 600;
}

.sn-entry-content ul,
.sn-entry-content ol {
	margin: 1.25em 0 1.6em;
	padding-left: 1.45em;
}

.sn-entry-content li {
	margin: 0.42em 0;
	padding-left: 0.25em;
}

.sn-entry-content li::marker {
	color: var(--sn-gold-dark);
	font-weight: 600;
}

.sn-entry-content blockquote {
	position: relative;
	margin: 2.2em 0;
	padding: 28px 32px 28px 38px;
	border: 0;
	border-left: 4px solid var(--sn-gold);
	background: var(--sn-paper);
	color: var(--sn-ink-soft);
	font-family: var(--sn-serif);
	font-size: 1.08em;
	font-style: normal;
	line-height: 1.7;
}

.sn-entry-content blockquote p:last-child {
	margin-bottom: 12px !important;
}

.sn-entry-content figure,
.sn-entry-content .wp-block-image {
	margin-block: 2.4em;
}

.sn-entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 12px 34px rgba(20, 32, 43, 0.11);
}

.sn-entry-content figcaption {
	margin-top: 10px;
	color: var(--sn-muted);
	font-size: 13px;
	font-style: italic;
	line-height: 1.55;
	text-align: left;
}

.sn-entry-content hr {
	width: 100%;
	height: 1px;
	margin: 3em 0;
	border: 0;
	background: var(--sn-line);
}

.sn-entry-content table,
body.supein-encyclopedia-entry .wp-block-table table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 15px;
}

.sn-entry-content th,
.sn-entry-content td,
body.supein-encyclopedia-entry .wp-block-table th,
body.supein-encyclopedia-entry .wp-block-table td {
	padding: 13px 15px;
	border: 1px solid var(--sn-line);
	vertical-align: top;
	text-align: left;
}

.sn-entry-content th,
body.supein-encyclopedia-entry .wp-block-table th {
	background: var(--sn-ink) !important;
	color: var(--sn-white) !important;
	font-weight: 500;
}

.sn-entry-content tbody th,
body.supein-encyclopedia-entry .wp-block-table tbody th {
	width: 28%;
	min-width: 170px;
	border-color: rgba(255, 255, 255, 0.14) !important;
	vertical-align: middle;
}

.sn-entry-content tbody tr:nth-child(odd) td,
body.supein-encyclopedia-entry .wp-block-table tbody tr:nth-child(odd) td {
	background: var(--sn-white) !important;
	color: var(--sn-text) !important;
}

.sn-entry-content tbody tr:nth-child(even) td,
body.supein-encyclopedia-entry .wp-block-table tbody tr:nth-child(even) td {
	background: rgba(231, 223, 208, 0.42) !important;
	color: var(--sn-text) !important;
}

/* Sources and extension areas */

.sn-sources {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 22px;
	margin-top: 64px;
	padding: 28px;
	border: 1px solid var(--sn-line);
	background: linear-gradient(135deg, #faf8f2, var(--sn-paper));
}

.sn-sources__mark,
.sn-archive-hero__seal,
.sn-empty-state > div {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 2px solid var(--sn-seal);
	color: var(--sn-seal);
	font-family: serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	transform: rotate(-2deg);
}

.sn-sources h2 {
	margin: 0 0 5px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
}

.sn-sources__verified {
	margin: 0 0 12px;
	color: var(--sn-muted);
	font-size: 13px;
}

.sn-sources ol {
	margin: 12px 0 0;
	padding-left: 20px;
	font-size: 14px;
}

.sn-sources a {
	color: var(--sn-gold-dark);
	word-break: break-word;
}

/* Curated WooCommerce recommendations */

.sn-related-products {
	position: relative;
	overflow: hidden;
	margin-top: 64px;
	padding: clamp(30px, 5vw, 48px);
	background:
		radial-gradient(circle at 100% 0, rgba(193, 160, 30, 0.2), transparent 32%),
		linear-gradient(135deg, #101820, var(--sn-ink-soft));
	color: var(--sn-white);
}

.sn-related-products::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 72px;
	height: 3px;
	background: var(--sn-gold-light);
	content: "";
}

.sn-related-products__header {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin-bottom: 30px;
}

.sn-related-products__eyebrow {
	margin: 0 0 8px;
	color: var(--sn-gold-light);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-related-products__header h2 {
	margin: 0 0 10px;
	color: var(--sn-white);
	font-family: var(--sn-serif);
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 500;
	line-height: 1.2;
}

.sn-related-products__header > p:last-child {
	margin: 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
	line-height: 1.65;
}

.sn-product-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.sn-product-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0;
	background: var(--sn-white);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
	transition: box-shadow 220ms ease, transform 220ms ease;
}

.sn-product-card:hover {
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
	transform: translateY(-4px);
}

.sn-product-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #0c1319;
}

.sn-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: none;
	transition: filter 400ms ease, transform 500ms ease;
}

.sn-product-card:hover .sn-product-card__media img {
	filter: saturate(0.92) contrast(1.04);
	transform: scale(1.035);
}

.sn-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 15px 20px;
}

.sn-product-card__category {
	margin: 0 0 8px;
	color: #8064b3 !important;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-product-card h3 {
	margin: 0 0 13px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.38;
}

.sn-product-card h3 a {
	color: inherit;
	text-decoration: none;
}

.sn-product-card h3 a:hover,
.sn-product-card h3 a:focus-visible {
	color: var(--sn-gold-dark);
}

.sn-product-card__price {
	margin: auto 0 18px;
	color: var(--sn-ink-soft);
	font-size: 14px;
	font-weight: 600;
}

.sn-product-card__price del {
	margin-right: 5px;
	color: var(--sn-muted);
	font-weight: 400;
}

.sn-product-card__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: var(--sn-gold-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.045em;
	text-decoration: none;
}

.sn-product-card__link span {
	font-size: 16px;
	transition: transform 180ms ease;
}

.sn-product-card__link:hover span,
.sn-product-card__link:focus-visible span {
	transform: translateX(4px);
}

.sn-entry-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 54px;
	padding-top: 30px;
	border-top: 1px solid var(--sn-line);
}

.sn-entry-navigation a {
	display: flex;
	min-height: 108px;
	flex-direction: column;
	justify-content: center;
	padding: 20px 22px;
	border: 1px solid var(--sn-line);
	background: #fbfaf7;
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sn-entry-navigation a:hover,
.sn-entry-navigation a:focus-visible {
	border-color: rgba(193, 160, 30, 0.7);
	box-shadow: 0 12px 24px rgba(20, 32, 43, 0.08);
	transform: translateY(-2px);
}

.sn-entry-navigation span {
	margin-bottom: 6px;
	color: var(--sn-gold-dark);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sn-entry-navigation strong {
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
}

.sn-entry-navigation__next {
	text-align: right;
}

/* Featured collection object */

.sn-featured-product-slot:empty {
	display: none;
}

.sn-featured-product {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-top: 3px solid var(--sn-gold);
	background: var(--sn-white);
	box-shadow: 0 18px 44px rgba(20, 32, 43, 0.16);
}

.sn-featured-product::after {
	position: absolute;
	top: -68px;
	right: -68px;
	width: 138px;
	height: 138px;
	border: 1px solid rgba(193, 160, 30, 0.22);
	border-radius: 50%;
	box-shadow: 0 0 0 22px rgba(193, 160, 30, 0.04);
	content: "";
	pointer-events: none;
}

.sn-featured-product__eyebrow {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 17px 20px 15px;
	background: var(--sn-ink);
	color: var(--sn-gold-light);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-featured-product__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #0c1319;
}

.sn-featured-product__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: none;
	transition: filter 350ms ease, transform 500ms ease;
}

.sn-featured-product:hover .sn-featured-product__media img {
	filter: saturate(0.94) contrast(1.04);
	transform: scale(1.035);
}

.sn-featured-product__body {
	position: relative;
	z-index: 1;
	padding: 20px;
}

.sn-featured-product__category {
	margin: 0 0 7px;
	color: #8064b3 !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sn-featured-product h2 {
	margin: 0 0 12px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.34;
}

.sn-featured-product h2 a {
	color: inherit;
	text-decoration: none;
}

.sn-featured-product h2 a:hover,
.sn-featured-product h2 a:focus-visible {
	color: #8064b3;
}

.sn-featured-product__price {
	margin: 0 0 10px;
	color: var(--sn-ink-soft);
	font-size: 17px;
	font-weight: 700;
}

.sn-featured-product__price del {
	margin-right: 5px;
	color: var(--sn-muted);
	font-size: 13px;
	font-weight: 400;
}

.sn-featured-product__availability {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 0 0 17px;
	color: var(--sn-muted);
	font-size: 11px;
	line-height: 1.45;
}

.sn-featured-product__availability::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4f8b59;
	box-shadow: 0 0 0 3px rgba(79, 139, 89, 0.12);
	content: "";
}

.sn-featured-product__button,
.sn-featured-product__whatsapp {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sn-featured-product__button {
	border: 1px solid var(--sn-gold);
	background: var(--sn-gold);
	color: #111820 !important;
}

.sn-featured-product__button:hover,
.sn-featured-product__button:focus-visible {
	border-color: var(--sn-gold-light);
	background: var(--sn-gold-light);
	color: #111820 !important;
	transform: translateY(-1px);
}

.sn-featured-product__whatsapp {
	margin-top: 9px;
	border: 1px solid rgba(20, 32, 43, 0.18);
	background: transparent;
	color: var(--sn-ink-soft) !important;
}

.sn-featured-product__whatsapp:hover,
.sn-featured-product__whatsapp:focus-visible {
	border-color: #8064b3;
	color: #8064b3 !important;
}

/* Sidebar and table of contents */

.sn-entry-sidebar {
	align-self: stretch;
	padding-top: 74px;
}

.sn-sidebar-stack {
	display: grid;
	gap: 28px;
}

.sn-toc,
.sn-sidebar-card {
	padding: 28px;
	box-shadow: 0 16px 40px rgba(20, 32, 43, 0.09);
}

.sn-toc {
	position: static;
	border-top: 3px solid var(--sn-gold);
	background: var(--sn-ink);
	color: rgba(255, 255, 255, 0.72);
}

.sn-toc[hidden] {
	display: none;
}

.sn-toc__summary {
	position: relative;
	display: block;
	margin: 0;
	padding-right: 28px;
	cursor: pointer;
	list-style: none;
	color: var(--sn-white);
	font-family: var(--sn-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

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

.sn-toc__summary::after {
	position: absolute;
	top: 50%;
	right: 0;
	color: var(--sn-gold-light);
	content: "+";
	font-family: var(--sn-sans);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
}

.sn-toc[open] .sn-toc__summary::after {
	content: "−";
}

.sn-toc nav {
	margin-top: 18px;
}

.sn-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sn-toc li {
	position: relative;
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sn-toc li.is-subsection {
	padding-left: 14px;
}

.sn-toc a {
	display: block;
	padding: 10px 0;
	color: #ab93d7 !important;
	font-size: 13px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 180ms ease, transform 180ms ease;
}

.sn-toc a:hover,
.sn-toc a:focus-visible,
.sn-toc a.is-active {
	color: #d8bd55 !important;
	transform: translateX(3px);
}

.sn-sidebar-card {
	border: 1px solid var(--sn-line);
	background: rgba(255, 255, 255, 0.7);
}

.sn-sidebar-card__eyebrow {
	margin: 0 0 7px;
	color: var(--sn-seal);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.sn-sidebar-card h2 {
	margin: 0 0 18px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.35;
}

.sn-sidebar-card ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.sn-sidebar-card li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--sn-line);
	color: var(--sn-muted);
	font-size: 13px;
}

.sn-sidebar-card li a {
	color: var(--sn-ink-soft);
	text-decoration: none;
}

.sn-sidebar-card li a:hover,
.sn-sidebar-card li a:focus-visible {
	color: var(--sn-gold-dark);
}

.sn-text-link {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	color: var(--sn-gold-dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.035em;
	text-decoration: none;
}

.sn-text-link span {
	font-size: 17px;
	transition: transform 180ms ease;
}

.sn-text-link:hover span,
.sn-text-link:focus-visible span {
	transform: translateX(4px);
}

/* Archive */

.sn-archive-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(circle at 82% 15%, rgba(193, 160, 30, 0.2), transparent 28%),
		linear-gradient(120deg, #0f171e, var(--sn-ink) 58%, #253846);
	color: var(--sn-white);
}

.sn-archive-hero__pattern {
	position: absolute;
	z-index: -1;
	inset: 0;
	opacity: 0.42;
	background-image:
		linear-gradient(30deg, transparent 48%, rgba(255, 255, 255, 0.035) 49%, rgba(255, 255, 255, 0.035) 51%, transparent 52%),
		linear-gradient(150deg, transparent 48%, rgba(255, 255, 255, 0.025) 49%, rgba(255, 255, 255, 0.025) 51%, transparent 52%);
	background-size: 76px 132px;
}

.sn-archive-hero__inner {
	position: relative;
	padding-block: 58px 78px;
}

.sn-archive-hero__seal {
	position: absolute;
	top: 76px;
	right: 16px;
	width: 86px;
	height: 86px;
	border-color: rgba(216, 189, 85, 0.5);
	color: var(--sn-gold-light);
	font-size: 38px;
	opacity: 0.7;
}

.sn-archive-hero h1 {
	max-width: 900px;
	margin: 0;
	color: var(--sn-white);
	font-family: var(--sn-serif);
	font-size: clamp(44px, 6vw, 76px);
	font-weight: 500;
	letter-spacing: 0.015em;
	line-height: 1.08;
}

.sn-archive-description {
	max-width: 720px;
	margin-top: 22px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 17px;
	line-height: 1.7;
}

.sn-archive-description p {
	margin: 0;
}

.sn-archive-main {
	padding-block: 48px 110px;
}

.sn-archive-toolbar {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 44px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--sn-line);
}

.sn-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.sn-category-filter a {
	padding: 8px 14px;
	border: 1px solid rgba(20, 32, 43, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	color: var(--sn-ink-soft);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sn-category-filter a:hover,
.sn-category-filter a:focus-visible,
.sn-category-filter a.is-active {
	border-color: var(--sn-ink);
	background: var(--sn-ink);
	color: var(--sn-white);
}

.sn-archive-search {
	position: relative;
	width: min(100%, 280px);
	flex: 0 0 280px;
}

.sn-archive-search input[type="search"] {
	width: 100%;
	height: 42px;
	padding: 0 46px 0 15px;
	border: 1px solid rgba(20, 32, 43, 0.22);
	border-radius: 0;
	outline: none;
	background: var(--sn-white);
	color: var(--sn-ink);
	font-family: var(--sn-sans);
	font-size: 13px;
}

.sn-archive-search input[type="search"]:focus {
	border-color: var(--sn-gold-dark);
	box-shadow: 0 0 0 3px rgba(193, 160, 30, 0.13);
}

.sn-archive-search button {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--sn-ink);
	color: var(--sn-white);
	font-size: 21px;
	cursor: pointer;
}

.sn-entry-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.sn-entry-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0;
	border: 1px solid rgba(20, 32, 43, 0.1);
	background: var(--sn-white);
	box-shadow: 0 15px 35px rgba(20, 32, 43, 0.07);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.sn-entry-card:hover {
	box-shadow: 0 24px 48px rgba(20, 32, 43, 0.13);
	transform: translateY(-5px);
}

.sn-entry-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--sn-ink);
}

.sn-entry-card__image::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(8, 14, 19, 0.35), transparent 50%);
	content: "";
}

.sn-entry-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease, filter 500ms ease;
}

.sn-entry-card:hover .sn-entry-card__image img {
	filter: saturate(0.92) contrast(1.04);
	transform: scale(1.035);
}

.sn-entry-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(216, 189, 85, 0.62);
	font-family: serif;
	font-size: 54px;
}

.sn-entry-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 25px 25px 28px;
}

.sn-entry-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-bottom: 13px;
	color: var(--sn-muted);
	font-size: 11px;
	letter-spacing: 0.075em;
	line-height: 1.35;
	text-transform: uppercase;
}

.sn-entry-card__meta a {
	color: var(--sn-seal);
	font-weight: 600;
	text-decoration: none;
}

.sn-entry-card h2 {
	margin: 0 0 13px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 500;
	line-height: 1.32;
}

.sn-entry-card h2 a {
	color: inherit;
	text-decoration: none;
}

.sn-entry-card h2 a:hover,
.sn-entry-card h2 a:focus-visible {
	color: var(--sn-gold-dark);
}

.sn-entry-card p {
	margin: 0 0 22px;
	color: var(--sn-muted);
	font-size: 14px;
	line-height: 1.7;
}

.sn-entry-card .sn-text-link {
	margin-top: auto;
}

.sn-pagination {
	margin-top: 54px;
}

.sn-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
}

.sn-pagination .page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--sn-line);
	background: var(--sn-white);
	color: var(--sn-ink);
	font-size: 13px;
	text-decoration: none;
}

.sn-pagination .page-numbers.current,
.sn-pagination a.page-numbers:hover,
.sn-pagination a.page-numbers:focus-visible {
	border-color: var(--sn-ink);
	background: var(--sn-ink);
	color: var(--sn-white);
}

.sn-empty-state {
	display: grid;
	max-width: 640px;
	margin: 42px auto;
	justify-items: center;
	padding: 60px 30px;
	border: 1px solid var(--sn-line);
	background: rgba(255, 255, 255, 0.6);
	text-align: center;
}

.sn-empty-state h2 {
	margin: 22px 0 6px;
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-size: 28px;
	font-weight: 500;
}

.sn-empty-state p {
	margin: 0;
	color: var(--sn-muted);
}

/* Elementor/Royal fallback compatibility if a Theme Builder template wins. */

body.supein-encyclopedia-entry .wpr-post-content {
	color: var(--sn-text);
	font-family: var(--sn-sans);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.008em;
	line-height: 1.82;
}

body.supein-encyclopedia-entry .wpr-post-content h2,
body.supein-encyclopedia-entry .wpr-post-content h3 {
	color: var(--sn-ink);
	font-family: var(--sn-serif);
	font-weight: 500;
}

body.supein-encyclopedia-entry .wpr-post-content h2 {
	font-size: clamp(28px, 3.2vw, 38px);
}

body.supein-encyclopedia-entry .wpr-post-content h3 {
	color: var(--sn-seal);
	font-size: clamp(22px, 2.5vw, 28px);
}

body.supein-encyclopedia-entry .wpr-post-content a {
	color: var(--sn-gold-dark);
}

/* Responsive */

@media (min-width: 1025px) {
	.sn-sidebar-stack {
		position: sticky;
		top: 32px;
		max-height: calc(100vh - 64px);
		overflow-x: hidden;
		overflow-y: auto;
		padding-right: 7px;
		overscroll-behavior: contain;
		scrollbar-color: var(--sn-gold) rgba(20, 32, 43, 0.1);
		scrollbar-width: thin;
	}

	.sn-sidebar-stack::-webkit-scrollbar {
		width: 6px;
	}

	.sn-sidebar-stack::-webkit-scrollbar-track {
		background: rgba(20, 32, 43, 0.08);
	}

	.sn-sidebar-stack::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: var(--sn-gold);
	}
}

@media (max-width: 1024px) {
	.sn-entry-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.sn-entry-sidebar {
		padding-top: 0;
	}

	.sn-sidebar-stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sn-toc {
		position: static;
	}

	.sn-entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sn-container {
		width: min(calc(100% - 30px), 1240px);
	}

	.sn-encyclopedia {
		font-size: 16px;
	}

	.sn-entry-hero {
		min-height: 430px;
	}

	.sn-entry-hero__overlay {
		background: linear-gradient(90deg, rgba(8, 14, 19, 0.9), rgba(8, 14, 19, 0.67));
	}

	.sn-entry-hero__inner {
		padding-block: 42px 76px;
	}

	.sn-entry-title {
		font-size: clamp(30px, 4.1vw, 50px) !important;
		line-height: 1.12;
	}

	.sn-entry-deck {
		font-size: 17px;
	}

	.sn-entry-layout {
		width: 100%;
		margin-top: -32px;
		padding-bottom: 70px;
	}

	.sn-entry-paper {
		padding: 34px 22px;
		box-shadow: 0 18px 45px rgba(20, 32, 43, 0.1);
	}

	.sn-entry-content {
		font-size: 16.5px;
		line-height: 1.78;
	}

	.sn-entry-content blockquote {
		padding: 22px 20px 22px 24px;
	}

	.sn-sources {
		grid-template-columns: 1fr;
	}

	.sn-related-products {
		padding: 30px 20px;
	}

	.sn-product-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sn-entry-navigation,
	.sn-sidebar-stack,
	.sn-entry-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sn-entry-navigation__next {
		text-align: left;
	}

	.sn-entry-sidebar {
		width: min(calc(100% - 30px), 1240px);
		margin-inline: auto;
	}

	.sn-featured-product-inline {
		margin: 42px 0;
	}

	.sn-archive-hero__inner {
		padding-block: 42px 60px;
	}

	.sn-archive-hero__seal {
		top: 52px;
		right: 0;
		width: 62px;
		height: 62px;
		font-size: 28px;
		opacity: 0.35;
	}

	.sn-archive-hero h1 {
		font-size: clamp(38px, 13vw, 56px);
	}

	.sn-archive-description {
		font-size: 15px;
	}

	.sn-archive-main {
		padding-block: 32px 72px;
	}

	.sn-archive-toolbar {
		flex-direction: column;
	}

	.sn-archive-search {
		width: 100%;
		flex-basis: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sn-encyclopedia *,
	.sn-encyclopedia *::before,
	.sn-encyclopedia *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
