/**
 * Shared editorial archives, search, 404 and popularity pages — version 2.3.0.
 * Loaded only for managed editorial archives, topic pages or Smart Blog home output.
 */

.sblp-archive,
.sblp-archive * {
	box-sizing: border-box;
}

.sblp-archive {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: clamp(24px, 4vw, 64px) 16px clamp(56px, 8vw, 112px);
	background: var(--sblp-bg, #f8fafc);
	color: var(--sblp-text, #172033);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.65;
}

.sblp-archive__container {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.sblp-archive a {
	color: var(--sblp-link, #1d4ed8);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.sblp-archive a:hover {
	color: var(--sblp-design-link-hover, var(--sblp-accent-foreground, var(--sblp-link, #1d4ed8)));
}

.sblp-archive a:focus-visible,
.sblp-archive summary:focus-visible {
	outline: 3px solid var(--sblp-focus, rgba(37, 99, 235, 0.42));
	outline-offset: 3px;
	border-radius: 6px;
}

.sblp-archive img {
	max-width: 100%;
	height: auto;
}

.sblp-archive h1,
.sblp-archive h2,
.sblp-archive h3,
.sblp-archive p {
	margin-top: 0;
}

.sblp-archive h1,
.sblp-archive h2,
.sblp-archive h3 {
	color: var(--sblp-text, #172033);
	font-family: inherit;
	font-weight: 760;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.sblp-archive-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 5vw, 64px);
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: clamp(20px, 3vw, 34px);
	background:
		radial-gradient(circle at 90% 10%, var(--sblp-accent-soft, #dbeafe) 0, transparent 38%),
		var(--sblp-surface, #fff);
	box-shadow: var(--sblp-theme-shadow, 0 24px 70px rgba(15, 23, 42, 0.12));
}

.sblp-archive-hero::after {
	position: absolute;
	top: -80px;
	right: -64px;
	width: 220px;
	height: 220px;
	border: 42px solid var(--sblp-accent, #2563eb);
	border-radius: 50%;
	opacity: 0.08;
	content: "";
	pointer-events: none;
}

.sblp-archive-breadcrumbs {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	margin-bottom: clamp(28px, 5vw, 56px);
	color: var(--sblp-muted, #5b687c);
	font-size: 0.85rem;
	font-weight: 650;
}

.sblp-archive-breadcrumbs a {
	color: var(--sblp-muted, #5b687c);
	text-decoration: none;
}

.sblp-archive-breadcrumbs a:hover {
	color: var(--sblp-link, #1d4ed8);
}

.sblp-archive-hero__content {
	position: relative;
	z-index: 1;
	max-width: 820px;
}

.sblp-archive-hero__eyebrow,
.sblp-archive-section__eyebrow,
.sblp-subcategory-card__type {
	margin-bottom: 10px;
	color: var(--sblp-accent, #2563eb);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.sblp-archive-hero h1 {
	max-width: 18ch;
	margin-bottom: 18px;
	font-size: clamp(2.1rem, 6vw, 4.8rem);
	word-break: break-word;
}

.sblp-archive-hero__description {
	max-width: 72ch;
	color: var(--sblp-muted, #5b687c);
	font-size: clamp(1rem, 2vw, 1.2rem);
}

.sblp-archive-hero__description > :last-child {
	margin-bottom: 0;
}

.sblp-archive-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.sblp-archive-hero__meta span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--sblp-design-chip-border, var(--sblp-border, #d7dee8));
	border-radius: 999px;
	background: var(--sblp-design-chip-bg, var(--sblp-surface, #fff));
	color: var(--sblp-design-chip-text, var(--sblp-muted, #5b687c));
	font-size: 0.82rem;
	font-weight: 700;
}

.sblp-archive-section {
	margin-top: clamp(44px, 7vw, 88px);
}

.sblp-archive-section__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 24px;
}

.sblp-archive-section__heading h2 {
	margin-bottom: 0;
	font-size: clamp(1.55rem, 3.4vw, 2.55rem);
}

.sblp-subcategories__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.sblp-subcategory-card {
	position: relative;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 18px;
	background: var(--sblp-surface, #fff);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sblp-subcategory-card:hover,
.sblp-subcategory-card:focus-within {
	border-color: var(--sblp-accent, #2563eb);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.sblp-subcategory-card h3 {
	margin-bottom: 10px;
	font-size: 1.18rem;
}

.sblp-subcategory-card h3 a {
	color: var(--sblp-text, #172033);
	text-decoration: none;
}

.sblp-subcategory-card h3 a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.sblp-subcategory-card p:not(.sblp-subcategory-card__type) {
	margin-bottom: 18px;
	color: var(--sblp-muted, #5b687c);
	font-size: 0.92rem;
}

.sblp-subcategory-card__count {
	color: var(--sblp-muted, #5b687c);
	font-size: 0.78rem;
	font-weight: 700;
}

.sblp-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.sblp-archive-grid--list {
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.sblp-archive-grid--magazine {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sblp-archive-grid--pinned {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sblp-archive-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 20px;
	background: var(--sblp-surface, #fff);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sblp-archive-card:hover {
	border-color: var(--sblp-accent, #2563eb);
	box-shadow: 0 20px 46px rgba(15, 23, 42, 0.13);
	transform: translateY(-3px);
}

.sblp-archive-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--sblp-surface-soft, #f1f5f9);
	text-decoration: none;
}

.sblp-archive-card__image,
.sblp-archive-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.sblp-archive-card__image {
	object-fit: cover;
	transition: transform 280ms ease;
}

.sblp-archive-card:hover .sblp-archive-card__image {
	transform: scale(1.035);
}

.sblp-archive-card__placeholder {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, transparent 0 45%, var(--sblp-accent-soft, #dbeafe) 45% 55%, transparent 55% 100%),
		var(--sblp-surface-soft, #f1f5f9);
}

.sblp-archive-card__placeholder span {
	display: grid;
	width: 64px;
	height: 64px;
	place-items: center;
	border: 2px solid var(--sblp-accent, #2563eb);
	border-radius: 50%;
	color: var(--sblp-accent, #2563eb);
	font-size: 1.6rem;
	font-weight: 800;
}

.sblp-archive-card__body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.sblp-archive-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 13px;
}

.sblp-archive-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--sblp-design-badge-bg, var(--sblp-accent-soft, #dbeafe));
	color: var(--sblp-design-badge-text, var(--sblp-accent-foreground, var(--sblp-link, #1d4ed8)));
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.sblp-archive-badge--breaking {
	background: #b91c1c;
	color: #fff;
}

.sblp-archive-card__title {
	margin-bottom: 12px;
	font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.sblp-archive-card__title a {
	color: var(--sblp-text, #172033);
	text-decoration: none;
}

.sblp-archive-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 14px;
	margin-bottom: 13px;
	color: var(--sblp-muted, #5b687c);
	font-size: 0.78rem;
	font-weight: 650;
}

.sblp-archive-card__meta > * + *::before {
	margin-right: 14px;
	color: var(--sblp-border, #d7dee8);
	content: "•";
}

.sblp-archive-card--news .sblp-archive-card__meta {
	color: var(--sblp-accent, #2563eb);
	font-weight: 780;
}

.sblp-archive-card__excerpt {
	margin-bottom: 18px;
	color: var(--sblp-muted, #5b687c);
	font-size: 0.92rem;
}

.sblp-archive-card__more {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	color: var(--sblp-link, #1d4ed8);
	font-size: 0.86rem;
	font-weight: 780;
	text-decoration: none;
}

.sblp-archive-card__more span:last-child {
	transition: transform 180ms ease;
}

.sblp-archive-card__more:hover span:last-child {
	transform: translateX(4px);
}

.sblp-archive-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
	border-width: 2px;
	border-color: var(--sblp-accent, #2563eb);
}

.sblp-archive-card--featured .sblp-archive-card__media {
	min-height: 100%;
	aspect-ratio: auto;
}

.sblp-archive-card--featured .sblp-archive-card__body {
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
}

.sblp-archive-card--featured .sblp-archive-card__title {
	font-size: clamp(1.65rem, 3.8vw, 3rem);
}

.sblp-archive-grid--list .sblp-archive-card {
	display: grid;
	grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
}

.sblp-archive-grid--list .sblp-archive-card__media {
	min-height: 100%;
	aspect-ratio: 4 / 3;
}

.sblp-category-type-news .sblp-archive-feed .sblp-archive-grid:not(.sblp-archive-grid--grid):not(.sblp-archive-grid--magazine) {
	gap: 12px;
}

.sblp-category-type-news .sblp-archive-card__body {
	padding: 18px;
}

.sblp-category-type-news .sblp-archive-card__excerpt {
	line-height: 1.5;
}

.sblp-archive-empty {
	padding: clamp(24px, 5vw, 48px);
	border: 1px dashed var(--sblp-border, #d7dee8);
	border-radius: 18px;
	background: var(--sblp-surface-soft, #f1f5f9);
	text-align: center;
}

.sblp-archive-empty strong {
	display: block;
	margin-bottom: 6px;
	font-size: 1.12rem;
}

.sblp-archive-empty p {
	margin-bottom: 0;
	color: var(--sblp-design-empty-text, var(--sblp-muted, #5b687c));
}

.sblp-archive-empty--compact {
	padding: 24px;
}

.sblp-archive-pagination {
	margin-top: 32px;
}

.sblp-archive-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sblp-archive-pagination__list li {
	margin: 0;
}

.sblp-archive-pagination__list .page-numbers {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 10px;
	background: var(--sblp-surface, #fff);
	color: var(--sblp-text, #172033);
	font-weight: 750;
	text-decoration: none;
}

.sblp-archive-pagination__list .page-numbers:hover,
.sblp-archive-pagination__list .page-numbers.current {
	border-color: var(--sblp-design-pagination-active-bg, var(--sblp-accent-strong, var(--sblp-accent, #2563eb)));
	background: var(--sblp-design-pagination-active-bg, var(--sblp-accent-strong, var(--sblp-accent, #2563eb)));
	color: var(--sblp-design-pagination-active-text, var(--sblp-on-accent, #fff));
}

.sblp-category-faq__items {
	display: grid;
	gap: 10px;
}

.sblp-category-faq__item {
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 14px;
	background: var(--sblp-surface, #fff);
}

.sblp-category-faq__item[open] {
	border-color: var(--sblp-accent, #2563eb);
}

.sblp-category-faq__item summary {
	display: flex;
	min-height: 56px;
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	color: var(--sblp-text, #172033);
	font-weight: 760;
	list-style: none;
}

.sblp-category-faq__item summary::-webkit-details-marker {
	display: none;
}

.sblp-category-faq__icon {
	display: grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	place-items: center;
	border-radius: 50%;
	background: var(--sblp-design-badge-bg, var(--sblp-accent-soft, #dbeafe));
	color: var(--sblp-design-badge-text, var(--sblp-accent-foreground, var(--sblp-link, #1d4ed8)));
	font-size: 1.15rem;
	transition: transform 180ms ease;
}

.sblp-category-faq__item[open] .sblp-category-faq__icon {
	transform: rotate(45deg);
}

.sblp-category-faq__answer {
	padding: 0 18px 18px;
	color: var(--sblp-muted, #5b687c);
}

.sblp-category-faq__answer > :last-child {
	margin-bottom: 0;
}

.sblp-category-seo-text {
	padding: clamp(24px, 5vw, 48px);
	border-left: 4px solid var(--sblp-accent, #2563eb);
	border-radius: 0 18px 18px 0;
	background: var(--sblp-surface, #fff);
}

.sblp-category-seo-text__content {
	max-width: 78ch;
	color: var(--sblp-muted, #5b687c);
}

.sblp-category-seo-text__content > :last-child {
	margin-bottom: 0;
}


.sblp-archive-card__title,
.sblp-archive-card__excerpt,
.sblp-subcategory-card,
.sblp-category-faq__answer,
.sblp-category-seo-text__content,
.sblp-archive-hero__description {
	overflow-wrap: anywhere;
}

.sblp-category-seo-text__content table,
.sblp-category-seo-text__content pre {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.sblp-category-seo-text__content--long {
	columns: 2 330px;
	column-gap: 44px;
}

.sblp-archive-popular__content {
	min-width: 0;
}

.sblp-theme-dark .sblp-subcategory-card:hover,
.sblp-theme-dark .sblp-archive-card:hover {
	box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.sblp-theme-dark .sblp-archive-badge--breaking,
.sblp-theme-system .sblp-archive-badge--breaking {
	background: #dc2626;
	color: #fff;
}

@media (prefers-color-scheme: dark) {
	.sblp-theme-system .sblp-subcategory-card:hover,
	.sblp-theme-system .sblp-archive-card:hover {
		box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
	}
}

@media (max-width: 960px) {
	.sblp-subcategories__grid,
	.sblp-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sblp-archive-card--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-archive-card--featured .sblp-archive-card__media {
		min-height: 260px;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 680px) {
	.sblp-archive {
		padding-right: 12px;
		padding-left: 12px;
	}

	.sblp-archive-hero {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.sblp-archive-breadcrumbs {
		margin-bottom: 28px;
		font-size: 0.78rem;
	}

	.sblp-archive-hero h1 {
		font-size: clamp(2rem, 11vw, 3.1rem);
	}

	.sblp-subcategories__grid,
	.sblp-archive-grid,
	.sblp-archive-grid--magazine,
	.sblp-archive-grid--pinned {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-archive-grid--list .sblp-archive-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-archive-grid--list .sblp-archive-card__media {
		aspect-ratio: 16 / 9;
	}

	.sblp-archive-card--featured .sblp-archive-card__media {
		min-height: 0;
	}

	.sblp-archive-card--featured .sblp-archive-card__body {
		padding: 22px;
	}

	.sblp-category-seo-text {
		padding: 24px 20px;
	}

	.sblp-category-seo-text__content--long {
		columns: auto;
	}
}

@media (max-width: 380px) {
	.sblp-archive {
		font-size: 15px;
	}

	.sblp-archive-hero__meta {
		align-items: stretch;
		flex-direction: column;
	}

	.sblp-archive-hero__meta span {
		justify-content: center;
	}

	.sblp-archive-card__body,
	.sblp-subcategory-card {
		padding: 17px;
	}

	.sblp-archive-pagination__list .page-numbers {
		min-width: 44px;
		height: 44px;
		padding: 0 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sblp-subcategory-card,
	.sblp-archive-card,
	.sblp-archive-card__image,
	.sblp-archive-card__more span:last-child,
	.sblp-category-faq__icon {
		transition: none;
	}

	.sblp-subcategory-card:hover,
	.sblp-archive-card:hover,
	.sblp-archive-card:hover .sblp-archive-card__image,
	.sblp-archive-card__more:hover span:last-child {
		transform: none;
	}
}

@media print {
	.sblp-archive {
		padding: 0;
		background: #fff;
		color: #000;
	}

	.sblp-archive-hero,
	.sblp-subcategory-card,
	.sblp-archive-card,
	.sblp-category-faq__item,
	.sblp-category-seo-text {
		break-inside: avoid;
		box-shadow: none;
	}

	.sblp-archive-pagination,
	.sblp-archive-card__more,
	.sblp-archive-popular {
		display: none;
	}
}

/* Control foregrounds must not inherit the broad archive link color. */
.sblp-archive :is(
	.sblp-empty-state__action,
	.sblp-not-found-hero__home,
	.sblp-editorial-button:not(.sblp-editorial-button--secondary),
	.sblp-search-form__submit,
	.sblp-search-filters__apply,
	.sblp-popular-tabs__link.is-active,
	.sblp-popular-tabs__link[aria-current="page"]
) {
	background: var(--sblp-design-button-bg, var(--sblp-accent-strong, #35556f)) !important;
	border-color: var(--sblp-design-button-bg, var(--sblp-accent-strong, #35556f)) !important;
	color: var(--sblp-design-button-text, var(--sblp-on-accent, #ffffff)) !important;
}

.sblp-archive .sblp-editorial-button--secondary {
	background: var(--sblp-design-content-bg, var(--sblp-surface, #ffffff)) !important;
	border-color: var(--sblp-design-border, var(--sblp-border, #dfe3e8)) !important;
	color: var(--sblp-design-text, var(--sblp-text, #1f2933)) !important;
}

/* Search, tag, 404 and popularity editorial pages — version 2.3.0. */

.sblp-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sblp-search-hero__content {
	max-width: 960px;
}

.sblp-search-hero h1,
.sblp-not-found-hero h1 {
	max-width: 22ch;
}

.sblp-search-hero__summary,
.sblp-not-found-hero__text {
	max-width: 72ch;
	margin-bottom: 0;
	color: var(--sblp-muted, #5b687c);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.sblp-search-form {
	width: 100%;
	margin-top: 28px;
}

.sblp-search-form__row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
}

.sblp-search-form__icon {
	position: absolute;
	top: 50%;
	left: 18px;
	z-index: 1;
	color: var(--sblp-muted, #5b687c);
	font-size: 1.45rem;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.sblp-search-form__input,
.sblp-search-filter__control {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 12px;
	background: var(--sblp-surface, #fff);
	color: var(--sblp-text, #172033);
	font: inherit;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sblp-search-form__input {
	height: 56px;
	padding: 0 18px 0 52px;
	font-size: 1rem;
}

.sblp-search-form__input::placeholder {
	color: var(--sblp-design-input-text, var(--sblp-text, #172033));
	opacity: 1;
}

.sblp-search-form__submit,
.sblp-search-filters__apply,
.sblp-empty-state__action,
.sblp-not-found-hero__home {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sblp-design-button-bg, var(--sblp-accent-strong, var(--sblp-accent, #2563eb)));
	border-radius: 12px;
	background: var(--sblp-design-button-bg, var(--sblp-accent-strong, var(--sblp-accent, #2563eb)));
	color: var(--sblp-design-button-text, var(--sblp-on-accent, #fff));
	font: inherit;
	font-weight: 780;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sblp-search-form__submit {
	height: 56px;
	padding: 0 24px;
}

.sblp-search-form__submit:hover,
.sblp-search-filters__apply:hover,
.sblp-empty-state__action:hover,
.sblp-not-found-hero__home:hover {
	border-color: var(--sblp-design-button-bg, var(--sblp-accent-strong, #1d4ed8));
	background: var(--sblp-design-button-bg, var(--sblp-accent-strong, #1d4ed8));
	color: var(--sblp-design-button-text, var(--sblp-on-accent, #fff));
	transform: translateY(-1px);
}

.sblp-search-form__input:focus,
.sblp-search-filter__control:focus {
	border-color: var(--sblp-accent, #2563eb);
	box-shadow: 0 0 0 4px var(--sblp-focus, rgba(37, 99, 235, 0.22));
	outline: 0;
}

.sblp-search-form__submit:focus-visible,
.sblp-search-filters__apply:focus-visible,
.sblp-search-filters__reset:focus-visible,
.sblp-empty-state__action:focus-visible,
.sblp-not-found-hero__home:focus-visible {
	outline: 3px solid var(--sblp-focus, rgba(37, 99, 235, 0.42));
	outline-offset: 3px;
}

.sblp-search-filters {
	min-width: 0;
	margin: 16px 0 0;
	padding: 18px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 16px;
	background: var(--sblp-surface, #fff);
}

.sblp-search-filters__legend {
	padding: 0 8px;
	color: var(--sblp-text, #172033);
	font-size: 0.86rem;
	font-weight: 780;
}

.sblp-search-filters__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
}

.sblp-search-filter {
	display: grid;
	min-width: 0;
	gap: 7px;
}

.sblp-search-filter__label {
	color: var(--sblp-muted, #5b687c);
	font-size: 0.78rem;
	font-weight: 760;
}

.sblp-search-filter__control {
	height: 46px;
	padding: 0 36px 0 12px;
	font-size: 0.9rem;
}

.sblp-search-filters__actions {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sblp-search-filters__apply {
	height: 46px;
	padding: 0 18px;
}

.sblp-search-filters__reset {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 0 8px;
	color: var(--sblp-muted, #5b687c);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sblp-search-filters__reset:hover {
	color: var(--sblp-link, #1d4ed8);
}

.sblp-search-results__grid,
.sblp-search-recommendations__grid,
.sblp-tag-feed__grid,
.sblp-not-found-recent__grid {
	align-items: stretch;
}

.sblp-empty-state {
	display: grid;
	justify-items: center;
	padding: clamp(30px, 7vw, 64px) clamp(20px, 5vw, 48px);
	border: 1px dashed var(--sblp-border, #d7dee8);
	border-radius: 22px;
	background: var(--sblp-surface-soft, #f1f5f9);
	text-align: center;
}

.sblp-empty-state__icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	margin-bottom: 18px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 50%;
	background: var(--sblp-surface, #fff);
	color: var(--sblp-accent, #2563eb);
	font-size: 1.7rem;
}

.sblp-empty-state__title {
	max-width: 32ch;
	margin-bottom: 8px;
	color: var(--sblp-text, #172033);
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	line-height: 1.25;
}

.sblp-empty-state__text {
	max-width: 62ch;
	margin-bottom: 0;
	color: var(--sblp-design-empty-text, var(--sblp-muted, #5b687c));
}

.sblp-empty-state__action {
	margin-top: 22px;
	padding: 10px 18px;
}

.sblp-tag-hero .sblp-archive-hero__description {
	max-width: 76ch;
}

.sblp-not-found-hero {
	min-height: min(620px, 75vh);
	display: flex;
	align-items: center;
}

.sblp-not-found-hero__content {
	max-width: 850px;
}

.sblp-not-found-hero__code {
	position: absolute;
	top: 50%;
	right: clamp(18px, 6vw, 78px);
	color: var(--sblp-accent, #2563eb);
	font-size: clamp(6rem, 19vw, 16rem);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.8;
	opacity: 0.08;
	transform: translateY(-50%);
	pointer-events: none;
}

.sblp-not-found-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.sblp-not-found-hero__home {
	padding: 11px 20px;
}

.sblp-not-found-hero .sblp-search-form {
	max-width: 760px;
	margin-top: 24px;
}

.sblp-not-found-categories__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sblp-not-found-categories__list li {
	min-width: 0;
	margin: 0;
}

.sblp-not-found-categories__list a {
	display: flex;
	min-height: 86px;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 16px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 14px;
	background: var(--sblp-surface, #fff);
	color: var(--sblp-text, #172033);
	font-weight: 760;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sblp-not-found-categories__list a:hover {
	border-color: var(--sblp-accent, #2563eb);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
	color: var(--sblp-link, #1d4ed8);
	transform: translateY(-2px);
}

.sblp-not-found-categories__list span,
.sblp-not-found-categories__list small {
	overflow-wrap: anywhere;
}

.sblp-not-found-categories__list small {
	color: var(--sblp-muted, #5b687c);
	font-size: 0.76rem;
	font-weight: 650;
}

.sblp-theme-dark .sblp-search-form__input,
.sblp-theme-dark .sblp-search-filter__control {
	color-scheme: dark;
}

.sblp-theme-dark .sblp-not-found-categories__list a:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
	.sblp-theme-system .sblp-search-form__input,
	.sblp-theme-system .sblp-search-filter__control {
		color-scheme: dark;
	}

	.sblp-theme-system .sblp-not-found-categories__list a:hover {
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
	}
}

@media (max-width: 1040px) {
	.sblp-search-filters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sblp-not-found-categories__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.sblp-search-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-search-form__submit {
		width: 100%;
	}

	.sblp-search-filters {
		padding: 16px;
	}

	.sblp-search-filters__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-search-filters__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.sblp-search-filters__apply,
	.sblp-search-filters__reset {
		width: 100%;
		justify-content: center;
	}

	.sblp-not-found-hero {
		min-height: 0;
	}

	.sblp-not-found-hero__code {
		top: 28px;
		right: 18px;
		font-size: 7rem;
		transform: none;
	}

	.sblp-not-found-categories__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 380px) {
	.sblp-search-form__input {
		padding-right: 12px;
		padding-left: 44px;
		font-size: 0.94rem;
	}

	.sblp-search-form__icon {
		left: 14px;
	}

	.sblp-search-filters {
		padding: 14px;
	}

	.sblp-not-found-categories__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sblp-search-form__input,
	.sblp-search-filter__control,
	.sblp-search-form__submit,
	.sblp-search-filters__apply,
	.sblp-empty-state__action,
	.sblp-not-found-hero__home,
	.sblp-not-found-categories__list a {
		transition: none;
	}

	.sblp-search-form__submit:hover,
	.sblp-search-filters__apply:hover,
	.sblp-empty-state__action:hover,
	.sblp-not-found-hero__home:hover,
	.sblp-not-found-categories__list a:hover {
		transform: none;
	}
}

@media print {
	.sblp-search-form,
	.sblp-search-filters,
	.sblp-not-found-hero__actions,
	.sblp-not-found-categories {
		display: none;
	}

	.sblp-not-found-hero {
		min-height: 0;
	}
}

/* Popular materials and view rankings — version 2.3.0. */

.sblp-popular-page,
.sblp-popular-page *,
.sblp-popular-block,
.sblp-popular-block * {
	box-sizing: border-box;
}

.sblp-popular-page__hero .sblp-archive-hero__content {
	max-width: 900px;
}

.sblp-popular-page__intro {
	max-width: 70ch;
	margin-bottom: 0;
	color: var(--sblp-muted, #5b687c);
	font-size: clamp(1rem, 2vw, 1.18rem);
}

.sblp-popular-page__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
}

.sblp-popular-page__summary span {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--sblp-design-chip-border, var(--sblp-border, #d7dee8));
	border-radius: 999px;
	background: var(--sblp-design-chip-bg, var(--sblp-surface, #fff));
	color: var(--sblp-design-chip-text, var(--sblp-muted, #5b687c));
	font-size: 0.8rem;
	font-weight: 750;
}

.sblp-popular-tabs {
	margin-top: clamp(24px, 4vw, 40px);
}

.sblp-popular-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 7px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 16px;
	background: var(--sblp-surface, #fff);
	list-style: none;
}

.sblp-popular-tabs__item {
	min-width: 0;
	margin: 0;
}

.sblp-popular-tabs__link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border-radius: 11px;
	color: var(--sblp-muted, #5b687c);
	font-size: 0.86rem;
	font-weight: 760;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sblp-popular-tabs__link:hover {
	background: var(--sblp-surface-soft, #f1f5f9);
	color: var(--sblp-link, #1d4ed8);
}

.sblp-popular-tabs__link.is-active,
.sblp-popular-tabs__link[aria-current="page"] {
	background: var(--sblp-design-button-bg, var(--sblp-accent-strong, var(--sblp-accent, #2563eb)));
	color: var(--sblp-design-button-text, var(--sblp-on-accent, #fff));
}

.sblp-popular-tabs__link.is-active:hover,
.sblp-popular-tabs__link[aria-current="page"]:hover {
	background: var(--sblp-design-button-bg, var(--sblp-accent-strong, #1d4ed8));
	color: var(--sblp-design-button-text, var(--sblp-on-accent, #fff));
}

.sblp-popular-page__ranking {
	margin-top: clamp(36px, 6vw, 64px);
}

.sblp-popular-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sblp-popular-list__item {
	display: grid;
	min-width: 0;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin: 0;
}

.sblp-popular-list__rank {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	margin-top: 12px;
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 15px;
	background: var(--sblp-design-badge-bg, var(--sblp-accent-soft, #dbeafe));
	color: var(--sblp-design-badge-text, var(--sblp-accent-foreground, var(--sblp-link, #1d4ed8)));
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
	font-weight: 850;
	letter-spacing: 0.04em;
}

.sblp-popular-list__card {
	min-width: 0;
	height: 100%;
}

.sblp-popular-list__card > .sblp-archive-card {
	height: 100%;
}

.sblp-popular-list--page {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.sblp-popular-list--page .sblp-popular-list__item {
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 16px;
}

.sblp-popular-list--page .sblp-popular-list__rank {
	width: 58px;
	height: 58px;
	margin-top: 16px;
	border-radius: 18px;
	font-size: 1rem;
}

.sblp-popular-list--page .sblp-archive-card {
	display: grid;
	grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
}

.sblp-popular-list--page .sblp-archive-card__media {
	min-height: 100%;
	aspect-ratio: 4 / 3;
}

.sblp-popular-list--page .sblp-archive-card__body {
	justify-content: center;
}

.sblp-popular-block--shortcode {
	min-width: 0;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid var(--sblp-border, #d7dee8);
	border-radius: 22px;
	background: var(--sblp-surface-soft, #f1f5f9);
}

.sblp-popular-block--shortcode .sblp-popular-block__heading {
	margin-bottom: 20px;
}

.sblp-home-popular__content,
.sblp-archive-popular__content,
.sblp-not-found-popular {
	min-width: 0;
}

.sblp-archive-card__views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--sblp-design-link, var(--sblp-accent-foreground, var(--sblp-link, #1d4ed8)));
	font-variant-numeric: tabular-nums;
	font-weight: 760;
}

.sblp-archive-card__views > span[aria-hidden="true"] {
	color: var(--sblp-accent, #2563eb);
	font-size: 0.7rem;
	line-height: 1;
}

.sblp-theme-dark .sblp-popular-tabs__list,
.sblp-theme-dark .sblp-popular-block--shortcode {
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
	.sblp-theme-system .sblp-popular-tabs__list,
	.sblp-theme-system .sblp-popular-block--shortcode {
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
	}
}

@media (max-width: 960px) {
	.sblp-popular-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.sblp-popular-tabs__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sblp-popular-tabs__link {
		width: 100%;
		padding-right: 10px;
		padding-left: 10px;
	}

	.sblp-popular-list__item,
	.sblp-popular-list--page .sblp-popular-list__item {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 9px;
	}

	.sblp-popular-list__rank,
	.sblp-popular-list--page .sblp-popular-list__rank {
		width: 42px;
		height: 42px;
		margin-top: 10px;
		border-radius: 13px;
		font-size: 0.78rem;
	}

	.sblp-popular-list--page .sblp-archive-card {
		display: flex;
		grid-template-columns: none;
	}

	.sblp-popular-list--page .sblp-archive-card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.sblp-popular-block--shortcode {
		padding: 18px 14px;
		border-radius: 18px;
	}
}

@media (max-width: 380px) {
	.sblp-popular-page__summary {
		align-items: stretch;
		flex-direction: column;
	}

	.sblp-popular-page__summary span {
		justify-content: center;
	}

	.sblp-popular-tabs__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.sblp-popular-list__item,
	.sblp-popular-list--page .sblp-popular-list__item {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 7px;
	}

	.sblp-popular-list__rank,
	.sblp-popular-list--page .sblp-popular-list__rank {
		width: 34px;
		height: 34px;
		margin-top: 8px;
		border-radius: 10px;
		font-size: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sblp-popular-tabs__link {
		transition: none;
	}
}

@media print {
	.sblp-popular-tabs,
	.sblp-popular-block--shortcode .sblp-archive-card__more {
		display: none;
	}

	.sblp-popular-list__item {
		break-inside: avoid;
	}
}
