/* Archive index (spec 5.2, 6.9): one calm column, no multi-column text, no ruled grid.
   Years carry a single proportional bar so the 2008 peak is visible at a glance. */
.archive-lede {
	margin: 0 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--ink-soft);
}

.archive-section + .archive-section {
	margin-top: var(--wp--preset--spacing--50);
}

.archive-heading {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--structure);
}

.archive-years,
.archive-departments {
	margin: 0;
	padding: 0;
	list-style: none;
}

.archive-year a {
	display: grid;
	grid-template-columns: 3.5rem 6rem 1fr;
	align-items: center;
	column-gap: var(--wp--preset--spacing--20);
	padding-block: calc(var(--wp--preset--spacing--20) / 2);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.archive-year-label {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
}

.archive-year-count {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.archive-bar {
	display: block;
	height: 0.5rem;
	width: calc(var(--share) * 100%);
	background: var(--wp--preset--color--structure);
	opacity: 0.35;
}

.archive-year a:hover .archive-year-label,
.archive-year a:focus-visible .archive-year-label {
	color: var(--wp--preset--color--emphasis-ink);
	text-decoration: underline;
}

.archive-year a:hover .archive-bar,
.archive-year a:focus-visible .archive-bar {
	opacity: 1;
}

.archive-department {
	margin: 0;
	padding-block: calc(var(--wp--preset--spacing--20) / 2);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
}

.archive-department-name {
	color: var(--wp--preset--color--ink);
	text-decoration-color: var(--wp--preset--color--rule);
}

.archive-department-name:hover,
.archive-department-name:focus-visible {
	color: var(--wp--preset--color--emphasis-ink);
	text-decoration-color: currentColor;
}

/* The span and count sit on the same line when they fit, and drop under the name when they don't. */
.archive-department-meta {
	display: inline-block;
	margin-left: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}
