/**
 * Yearly Post Archive – Basis-Styles
 *
 * @package YPA
 */

/* Filter-Leiste (ähnlich Kategorie-/Archiv-Filtern) */
.ypa-year-nav--filter {
	margin-bottom: 1.25rem;
}

.ypa-year-nav--filter.ypa-year-nav--list {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ypa-year-nav--list {
	margin-bottom: 1.5rem;
}

.ypa-year-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ypa-year-list--chips {
	gap: 0.4rem 0.5rem;
}

.ypa-year-list--chips .ypa-year-link {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	line-height: 1.25;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.03);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ypa-year-list--chips .ypa-year-link:hover,
.ypa-year-list--chips .ypa-year-link:focus {
	border-color: rgba(0, 0, 0, 0.35);
	background: rgba(0, 0, 0, 0.06);
	outline: none;
}

.ypa-year-list--chips .ypa-year-link.is-active {
	font-weight: 600;
	border-color: currentColor;
	background: rgba(0, 0, 0, 0.08);
}

.ypa-year-link {
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.ypa-year-nav:not(.ypa-year-nav--filter) .ypa-year-link:hover,
.ypa-year-nav:not(.ypa-year-nav--filter) .ypa-year-link:focus {
	border-bottom-color: currentColor;
}

.ypa-year-nav:not(.ypa-year-nav--filter) .ypa-year-link.is-active {
	font-weight: 600;
}

.ypa-year-select {
	min-width: 10rem;
	padding: 0.35rem 0.5rem;
	max-width: 100%;
}

.ypa-archive-yearly .ypa-page-header {
	margin-bottom: 1.5rem;
}

.ypa-post-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.ypa-post-item + .ypa-post-item {
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ypa-entry-title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.ypa-entry-title a {
	text-decoration: none;
}

.ypa-entry-title a:hover,
.ypa-entry-title a:focus {
	text-decoration: underline;
}

.ypa-entry-meta {
	font-size: 0.875rem;
	opacity: 0.85;
	margin-bottom: 0.5rem;
}

.ypa-entry-summary {
	margin-bottom: 0.5rem;
}

.ypa-read-more {
	font-weight: 500;
	text-decoration: none;
}

.ypa-read-more:hover,
.ypa-read-more:focus {
	text-decoration: underline;
}

.ypa-no-posts {
	margin: 1rem 0;
}

.ypa-is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ypa-ajax-notice {
	margin: 0.5rem 0;
	font-size: 0.875rem;
}
