.archive-center {
	display: grid;
	gap: 16px;
}

.archive-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 25px;
	color: #88766a;
	font-size: 12px;
}

.archive-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
}

.archive-breadcrumb .dashicons {
	width: 14px;
	height: 14px;
	color: var(--home-orange);
	font-size: 14px;
}

.archive-hero {
	position: relative;
	min-height: 198px;
	overflow: hidden;
	border: 1px solid var(--home-line);
	border-radius: 14px;
	background:
		linear-gradient(90deg, #fff8ec 0%, #fff8ec 42%, rgb(255 248 236 / 88%) 52%, rgb(255 248 236 / 5%) 73%),
		url("../images/archive/archive-banner.jpg") right center / auto 100% no-repeat,
		#fff8ec;
	box-shadow: var(--home-shadow);
}

.archive-hero__content {
	position: relative;
	z-index: 1;
	width: 58%;
	padding: 32px 26px 24px;
}

.archive-hero h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.25;
}

.archive-hero h1 span {
	font-size: 24px;
}

.archive-hero p {
	margin: 12px 0 23px;
	color: #8e7f73;
	font-size: 13px;
}

.archive-stats {
	display: flex;
	gap: 52px;
}

.archive-stats span {
	display: grid;
	gap: 3px;
}

.archive-stats small {
	color: #9b8d82;
	font-size: 12px;
}

.archive-stats strong {
	color: var(--home-orange);
	font-size: 23px;
	line-height: 1;
}

.archive-years {
	display: grid;
	gap: 10px;
}

.archive-year h2 {
	margin: 0;
}

.archive-year__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--home-line);
	border-radius: 11px;
	background: linear-gradient(90deg, #fffdf9, #fffaf3);
	box-shadow: 0 4px 12px rgb(112 78 45 / 4%);
	color: var(--home-text);
	font-size: 15px;
	font-weight: 700;
	text-align: left;
}

.archive-year__toggle:hover,
.archive-year__toggle:focus-visible,
.archive-year.is-open .archive-year__toggle {
	border-color: #ffd8b3;
	background: var(--home-orange-soft);
	color: #eb7f2f;
}

.archive-year__toggle > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.archive-year__toggle .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.archive-year__chevron {
	transition: transform 0.2s ease;
}

.archive-year.is-open .archive-year__chevron {
	transform: rotate(180deg);
}

.archive-year__panel {
	margin-top: 9px;
	border: 1px solid var(--home-line);
	border-radius: 13px;
	background: var(--home-card);
	box-shadow: var(--home-shadow);
}

.archive-year__panel[hidden] {
	display: none;
}

.archive-timeline {
	position: relative;
	padding-left: 20px;
}

.archive-timeline::before {
	position: absolute;
	top: 16px;
	bottom: 16px;
	left: 9px;
	width: 1px;
	background: #f2dfc8;
	content: "";
}

.archive-post {
	position: relative;
	display: grid;
	grid-template-columns: 185px minmax(0, 1fr);
	gap: 20px;
	min-height: 123px;
	padding: 12px 20px 12px 10px;
}

.archive-post + .archive-post {
	border-top: 1px solid var(--home-line);
}

.archive-post__dot {
	position: absolute;
	top: 17px;
	left: -15px;
	width: 8px;
	height: 8px;
	border: 2px solid var(--home-card);
	border-radius: 50%;
	background: #f3d9b8;
	box-shadow: 0 0 0 1px #f5e8d7;
}

.archive-post__image {
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.archive-post__image img {
	display: block;
	width: 100%;
	height: 99px;
	transition: transform 0.25s ease;
}

.archive-post__image:hover img {
	transform: scale(1.04);
}

.archive-post__content {
	min-width: 0;
	padding-top: 3px;
}

.archive-post h3 {
	margin: 0 0 7px;
	font-size: 16px;
	line-height: 1.4;
}

.archive-post h3 a {
	text-decoration: none;
}

.archive-post h3 a:hover {
	color: var(--home-orange);
}

.archive-post__content > p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 12px;
	color: var(--home-muted);
	font-size: 12px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.archive-post__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #a29387;
	font-size: 11px;
}

.archive-post__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.archive-post__meta .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
}

.archive-post__category {
	margin-left: auto;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 500;
}

.archive-post__category--0 { background: #e9f8ef; color: #48ad73; }
.archive-post__category--1 { background: #fff2e3; color: #f19845; }
.archive-post__category--2 { background: #f1edff; color: #8b75d6; }
.archive-post__category--3 { background: #e9f4ff; color: #4b97d0; }
.archive-post__category--4 { background: #ffefec; color: #e87969; }

.archive-closing {
	margin: 10px 0 0;
	color: #a59385;
	font-family: Georgia, serif;
	font-size: 16px;
	text-align: center;
}

.archive-closing span {
	color: #ffc66e;
}

[data-theme="dark"] .archive-hero {
	background:
		linear-gradient(90deg, #32261f 0%, #32261f 42%, rgb(50 38 31 / 88%) 52%, rgb(50 38 31 / 22%) 74%),
		url("../images/archive/archive-banner.jpg") right center / auto 100% no-repeat,
		#32261f;
}

[data-theme="dark"] .archive-year__toggle {
	background: var(--home-card);
}

@media (max-width: 1199px) {
	.archive-stats { gap: 32px; }
	.archive-post { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
	.archive-center { grid-column: 1; }
	.archive-post { grid-template-columns: 165px minmax(0, 1fr); }
}

@media (max-width: 680px) {
	.archive-center { gap: 13px; }
	.archive-hero {
		min-height: 216px;
		background:
			linear-gradient(90deg, rgb(255 248 236 / 96%) 0%, rgb(255 248 236 / 91%) 57%, rgb(255 248 236 / 35%) 100%),
			url("../images/archive/archive-banner.jpg") right center / auto 100% no-repeat,
			#fff8ec;
	}
	.archive-hero__content { width: 100%; padding: 26px 22px; }
	.archive-hero h1 { font-size: 25px; }
	.archive-stats { justify-content: space-between; gap: 12px; max-width: 280px; }
	.archive-year__toggle { min-height: 44px; padding-inline: 14px; }
	.archive-timeline { padding-left: 16px; }
	.archive-timeline::before { left: 7px; }
	.archive-post {
		display: block;
		padding: 14px 14px 14px 8px;
	}
	.archive-post__dot { left: -13px; }
	.archive-post__image { margin-bottom: 12px; }
	.archive-post__image img { height: auto; aspect-ratio: 16 / 8.5; }
	.archive-post__content { padding: 0 2px; }
	.archive-post__content > p { -webkit-line-clamp: 2; }
	.archive-post__meta { flex-wrap: wrap; gap: 9px 14px; }
	.archive-post__category { margin-left: 0; }
	[data-theme="dark"] .archive-hero {
		background:
			linear-gradient(90deg, rgb(50 38 31 / 96%) 0%, rgb(50 38 31 / 91%) 57%, rgb(50 38 31 / 35%) 100%),
			url("../images/archive/archive-banner.jpg") right center / auto 100% no-repeat,
			#32261f;
	}
}

@media (max-width: 430px) {
	.archive-breadcrumb { display: none; }
	.archive-hero p { max-width: 260px; }
}
