html:has(body.blog-archive-page) {
	height: 100%;
	overflow: hidden;
}

body.blog-archive-page {
	margin: 0;
	height: 100%;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #000;
	color: #fafafa;
	font-family: 'Inter', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.blog-archive-shell {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-width: 40rem;
	width: 100%;
	margin: 0 auto;
	padding: 0.75rem 1rem 0.65rem;
	box-sizing: border-box;
}

.blog-archive-chrome {
	flex-shrink: 0;
}

.blog-archive-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.blog-archive-back {
	display: inline-block;
	margin-bottom: 0.65rem;
	font-size: 0.8125rem;
	color: #a1a1aa;
	text-decoration: none;
}

.blog-archive-back:hover {
	color: #fafafa;
}

.blog-archive-title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.blog-archive-lede {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #a1a1aa;
}

.blog-archive-lede code {
	font-size: 0.85em;
	padding: 0.08em 0.3em;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
}

.blog-archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.45rem;
}

.blog-archive-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 1;
	min-width: min(100%, 12rem);
	align-items: stretch;
}

.blog-archive-clear {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 500;
	color: #93c5fd;
	text-decoration: none;
	padding: 0.35rem 0;
}

.blog-archive-clear:hover {
	color: #bfdbfe;
}

.blog-archive-search-inner {
	position: relative;
	flex: 1;
	min-width: 12rem;
}

.blog-archive-search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: #71717a;
	pointer-events: none;
}

.blog-archive-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem 0.6rem 2.35rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.4);
	color: #fafafa;
	font: inherit;
	font-size: 0.9rem;
}

.blog-archive-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.2);
}

.blog-archive-submit {
	padding: 0.6rem 1rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
	color: #fafafa;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
}

.blog-archive-submit:hover {
	background: rgba(255, 255, 255, 0.12);
}

.blog-archive-active {
	font-size: 0.75rem;
	color: #a1a1aa;
	margin: 0 0 0.2rem;
}

.blog-archive-active strong {
	color: #e4e4e7;
}

.blog-archive-page-status {
	font-size: 0.72rem;
	color: #71717a;
	margin: 0 0 0.35rem;
}

.blog-archive-pager {
	flex-shrink: 0;
	margin-top: 0.5rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-archive-pager__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.65rem;
}

.blog-archive-pager__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	color: #e4e4e7;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-archive-pager__btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fafafa;
	border-color: rgba(255, 255, 255, 0.14);
}

.blog-archive-pager__btn--disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.blog-archive-pager__nums {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.blog-archive-pager__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.15rem;
	height: 2.15rem;
	padding: 0 0.4rem;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	color: #a1a1aa;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease, color 0.15s ease;
}

.blog-archive-pager__num:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fafafa;
}

.blog-archive-pager__num.is-current {
	background: #fafafa;
	color: #0a0a0b;
	border-color: #fafafa;
}

.blog-archive-pager__ellipsis {
	padding: 0 0.15rem;
	color: #52525b;
	font-size: 0.85rem;
	user-select: none;
}

.blog-archive-list {
	padding: 0.15rem 0 0.5rem;
}

.blog-archive-empty {
	color: #71717a;
	font-size: 0.85rem;
	margin: 1rem 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
